Commit a17f2a1f authored by AP matsuo koji's avatar AP matsuo koji 😲

cli 1

parent 6873e93e
This diff is collapsed.
...@@ -8,6 +8,8 @@ include::config.adoc[] ...@@ -8,6 +8,8 @@ include::config.adoc[]
//:!sectnums: //:!sectnums:
//:imagesdir: Images //:imagesdir: Images
// hoge
//@ICON_CUSTOM@ //@ICON_CUSTOM@
{ExtendStyle} {ExtendStyle}
......
...@@ -31,6 +31,7 @@ include("comfuncs.js"); ...@@ -31,6 +31,7 @@ include("comfuncs.js");
// exit.push(function(){ if (isOk(stopWach)) echo("exit spend time=",stopWach.stop());}); // exit.push(function(){ if (isOk(stopWach)) echo("exit spend time=",stopWach.stop());});
// [get command-arguments] コマンド引数の取得 // [get command-arguments] コマンド引数の取得
var pm = uParam() var pm = uParam()
// 任意;オプションキーパラメータ群を指定する(なければ行コメントアウト) // 任意;オプションキーパラメータ群を指定する(なければ行コメントアウト)
// .set("inFile").opt("/I").next("*") .init("") .desc("input file") // .set("inFile").opt("/I").next("*") .init("") .desc("input file")
...@@ -49,11 +50,13 @@ var pm = uParam() ...@@ -49,11 +50,13 @@ var pm = uParam()
// [Main process] 処理を記述 // [Main process] 処理を記述
var InstRegURL = "HKCU\\Software\\Dainippon Screen Mfg.Co.,Ltd.\\ToolJsFuncScript\\1.0"; var InstRegURL = "HKCU\\Software\\Dainippon Screen Mfg.Co.,Ltd.\\ToolJsFuncScript\\1.0";
var InstPath = readParam.reg(InstRegURL).get("InstallPath"); InstPath = getEnv().exeDir; // レジストリ参照をやめます。exeの場所のみ。
if ( isNone(InstPath) ){
echo(-1,"警告::インストール先が見つかりません:",InstRegURL); // var InstPath = readParam.reg(InstRegURL).get("InstallPath");
InstPath = getEnv().exeDir; // if ( isNone(InstPath) ){
} // echo(-1,"警告::インストール先が見つかりません:",InstRegURL);
// InstPath = getEnv().exeDir;
// }
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
var adocTPL = uHereDoc.hereDoc(function(){/* var adocTPL = uHereDoc.hereDoc(function(){/*
...@@ -142,6 +145,9 @@ if ( pm.bOneDoc ) { ...@@ -142,6 +145,9 @@ if ( pm.bOneDoc ) {
}else{ }else{
if ((!pm.bForce)&&(!copySure(tgtconfigPath))) if ((!pm.bForce)&&(!copySure(tgtconfigPath)))
exit(-1); exit(-1);
echo("configPath=",configPath.FP());
echo("tgtconfigPath=",tgtconfigPath.FP());
copyFile(configPath,tgtconfigPath); copyFile(configPath,tgtconfigPath);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment