- 12 名前:名無しさん@お腹いっぱい。 mailto:sage [2009/07/14(火) 19:36:46 ID:dTreB8EE0]
- 今更だけどthink氏のxAutopagerizeを、ツリー構造さえ正しければどこにProxNフォルダがあっても実行できるようにしてみた
***Download_AutopagerizeFiles.bat 1a2,4 + pushd .. + set tmpPath = %CD% + popd 6c9 - wget http://wedata.net/databases/AutoPagerize/items.json?callback=callback -b -N -a AutopagerizeFiles.log -P "/Program Files/Proxomitron/html/userjs/" + wget http://wedata.net/databases/AutoPagerize/items.json?callback=callback -b -N -a AutopagerizeFiles.log -P "%tmpPath%/html/userjs/" 以下 "/Program Files/Proxomitron/html/userjs/" を "%tmpPath%/html/userjs/" に。 ***replaceAutopagerizeFiles.js 4a5 + var objFso = new ActiveXObject("Scripting.FileSystemObject"); 7a9,10 + var srcDir = objFso.getParentFolderName(WScript.ScriptFullName); // このファイルの存在するディレクトリ + var proxDir = objFso.getParentFolderName(srcDir); // Proxomitronのディレクトリ 10c13 - 'DirPath':'C:\\Program Files\\Proxomitron\\html\\userjs\\', + 'DirPath':'\\html\\userjs\\', 22c25 - 'DirPath':'C:\\Program Files\\Proxomitron\\html\\userjs\\', + 'DirPath':'\\html\\userjs\\', 73,74c76,77 - inputFile = cfg[i]['DirPath'] + cfg[i]['InputFile']; - outputFile = cfg[i]['DirPath'] + cfg[i]['OutputFile']; + inputFile = proxDir + cfg[i]['DirPath'] + cfg[i]['InputFile']; + outputFile = proxDir + cfg[i]['DirPath'] + cfg[i]['OutputFile'];
|

|