
CODE: [Copy to clipboard]上边的作用是在系统进入CMD时,修改临时目录为硬盘上的临时目录.这个目录名是自己建立的,需要修改为你自己的临时目录.@set temp=d:\temp
@set tmp=d:\temp
CODE: [Copy to clipboard]上边的"AutoRun"="d:\\windows\\cmdset.cmd"就是第一步中你创建的批处理文件所保存的路径和文件名.对应就可以了.名字可以起成任何字符.Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell\cmdset]
@="临时目录切换"
[HKEY_CLASSES_ROOT\exefile\shell\cmdset\command]
@="cmd.exe /c \"%1\" %*"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="d:\\windows\\cmdset.cmd"
CODE: [Copy to clipboard]上述内容保存为"文件名.inf",其中cmdset.cmd是第一步创建的批处理文件名,可以修改为你自己的文件名.使用时请将inf文件和批处理文件放在一个目录中,右键点击inf文件,选安装即可.[Version]
Signature="$CHICAGO$"
[DefaultInstall]
AddReg=cmd_AddReg
[DestinationDirs]
[cmd_AddReg]
hkcr,"exefile\shell\cmdset",,,"临时目录切换"
hkcr,"exefile\shell\cmdset\command",,,"cmd.exe /c "%1" %*"
hklm,"SOFTWARE\Microsoft\Command Processor","AutoRun",,"%01%\cmdset.cmd"
| 欢迎光临 微点交流论坛 (http://bbs.micropoint.com.cn/) | bbs.micropoint.com.cn |