willsion 当前离线
二级士官
set a="%cd%" for %%a in (%a%) do set b=%%~da for %%b in (%a%) do set c=%%~npb regedit.exe /s "%c%\temp.reg"
TOP
原帖由 fastslz 于 2009-1-16 18:02 发表 先说清楚你所说的当前目录是vbs脚本文件的当前目录,还是reg所在目录WScript.echo Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName)) WScript.echo Left(WScript.ScriptFullName,3 ...
fastslz 当前离线
贵宾
WScript.echo Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName)) WScript.echo Left(WScript.ScriptFullName,3)复制代码
原帖由 rat 于 2009-1-14 22:48 发表 CreateObject("WScript.Shell").Run "regedit /s temp.reg"
rat 当前离线
荣誉版主