求助:文本转换为ANSI编码的bat在文件右键菜单里使用,命令安顺序执行的方法
注册表键值数据为:(可以在文件右键菜单里使用。多个文件同时转换为ANSI编码)
C:\WINDOWS\system32\cmd.exe /c Md temp & For %%a in ("*.reg") Do Type "%%a" > temp\"%%a" & Copy temp\"*.reg" /y & Del temp\*.reg
改为:
C:\WINDOWS\system32\cmd.exe /c Md temp & For %%a in ("*.reg") Do Type "%%a" > temp\"%%a" & Copy temp\"*.reg" /y & Del temp\*.reg & Rd temp
即加上结尾的“& Rd temp”直接运行不完Copy temp\"*.reg"这一步,“& Rd temp”就运行结束,怎样修改能实现以下bat(以下bat可用)
Md temp
For %%a in ("*.reg") Do Type "%%a" >temp\"%%a"
Copy temp\"*.reg" /y
Del temp\*.reg
Rd temp
全过程,可以在文件右键菜单里使用(多个文件同时转换为ANSI编码)
在注册表里完整的项键值数据REG如下:
Windows Registry Editor Version 5.00
@="C:\\WINDOWS\\system32\\cmd.exe /c Md temp & For %%a in (\"*.reg\") Do Type \"%%a\" > temp\\\"%%a\" & Copy temp\\\"*.reg\" /y & Del temp\\*.reg"
[ Last edited by lqs623 on 2010-4-16 at 19:00 ]
注册表键值数据为:(可以在文件右键菜单里使用。多个文件同时转换为ANSI编码)
C:\WINDOWS\system32\cmd.exe /c Md temp & For %%a in ("*.reg") Do Type "%%a" > temp\"%%a" & Copy temp\"*.reg" /y & Del temp\*.reg
改为:
C:\WINDOWS\system32\cmd.exe /c Md temp & For %%a in ("*.reg") Do Type "%%a" > temp\"%%a" & Copy temp\"*.reg" /y & Del temp\*.reg & Rd temp
即加上结尾的“& Rd temp”直接运行不完Copy temp\"*.reg"这一步,“& Rd temp”就运行结束,怎样修改能实现以下bat(以下bat可用)
Md temp
For %%a in ("*.reg") Do Type "%%a" >temp\"%%a"
Copy temp\"*.reg" /y
Del temp\*.reg
Rd temp
全过程,可以在文件右键菜单里使用(多个文件同时转换为ANSI编码)
在注册表里完整的项键值数据REG如下:
Windows Registry Editor Version 5.00
@="C:\\WINDOWS\\system32\\cmd.exe /c Md temp & For %%a in (\"*.reg\") Do Type \"%%a\" > temp\\\"%%a\" & Copy temp\\\"*.reg\" /y & Del temp\\*.reg"
[ Last edited by lqs623 on 2010-4-16 at 19:00 ]
