我对这部分批处理代码有些麻烦:
SET /P C="Would You Like To EDIT Shows or EXIT? |"
IF /I "%C%" EQU "Edit" START "C:\Program Files (x86)\Notepad++\notepad++.exe" "G:\Backup\Backup Folder 2\Batch Commands\Shows.bat"
IF /I "%C%" EQU "Exit" GOTO :Exit
当前文件名为Shows.bat,如果我说"编辑"
,我想提供用记事本++打开它的选项。答案 0 :(得分:0)
当你调用start
时,该命令假定它在引号中找到的第一个东西应该是窗口标题。您可以在开始后放置""
,使其按照您期望的方式工作。
@echo off
set /p c="Would you like to EDIT shows or EXIT? |"
if /i "%c%" equ "Edit" start "" "C:\Program Files (x86)\Notepad++\notepad++.exe" "G:\Backup\Backup Folder 2\Batch Commands\Shows.bat"
if /i "%c%" equ "Exit" goto exit