Batch file 批处理命令以在另一个程序中打开.bat文件

Batch file 批处理命令以在另一个程序中打开.bat文件,batch-file,cmd,Batch File,Cmd,我在批处理代码的这部分遇到了一些问题: 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

我在批处理代码的这部分遇到了一些问题:

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,我想提供使用notepad++打开它的选项。如果我在调用start时说Edit,则该命令假定它在引号中找到的第一个内容应该是窗口标题。你可以把它放在开始之后,让它按照你期望的方式工作

@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

谢谢你的帮助。如果我给了你想要的答案,请单击我的答案旁边的复选框。