在文件快捷方式中执行2个命令

时间:2014-03-16 21:31:15

标签: windows cmd shortcut

我使用的是Windows 7专业版。

我有自动生成的程序文件快捷方式。

我每次启动程序前都需要删除一个文件夹。

我可以在不创建.bat文件的情况下自动化它吗?例如在快捷方式属性中使用此命令del \directory\path\* /g "C:\Program Files (x86)\program.exe"

1 个答案:

答案 0 :(得分:1)

是的,你可以这样做:

C:\Windows\System32\cmd.exe /C "del \directory\path\* /Q & "C:\Program Files (x86)\program.exe"

&符号告诉shell按顺序运行多个命令。

相关问题