Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 打开记事本++;使用批处理文件,并使其在运行后返回提示_Batch File - Fatal编程技术网

Batch file 打开记事本++;使用批处理文件,并使其在运行后返回提示

Batch file 打开记事本++;使用批处理文件,并使其在运行后返回提示,batch-file,Batch File,这是我必须从命令行打开notepad++的批处理文件,但在我关闭notepad++程序之前,它不会在我运行它后返回提示。我知道有一种方法可以让它在程序仍然打开时返回 @echo off rem bath file name: NNP.bat rem created by: mark g rem this batch file while open notepad++ "C:\Program Files (x86)\Notepad++\notepad++.exe" %1 Start”“%

这是我必须从命令行打开notepad++的批处理文件,但在我关闭notepad++程序之前,它不会在我运行它后返回提示。我知道有一种方法可以让它在程序仍然打开时返回

@echo off 
rem bath file name: NNP.bat 
rem created by: mark g
rem this batch file while open notepad++ 
"C:\Program Files (x86)\Notepad++\notepad++.exe" %1 

Start”“%ProgramFiles(x86)%\Notepad++\Notepad++.exe”
,应该这样做。好的,谢谢你,但是我之前尝试过start命令,它打开了一个命令提示窗口,所以这两个双引号是什么意思,只是为了让我理解为什么它可以使用引号,但不能使用引号?打开一个命令提示窗口,然后输入
start/?
,将为您提供该命令的用法和选项<代码>“是一个空标题(因为第一个双引号参数被视为标题)。这将阻止您启动名为
%ProgramFiles(x86)%\Notepad++\Notepad++.exe
的窗口。所以,在贬低我在这方面的知识之前,请尝试一下!我不是在贬低你对这门学科的知识,我只是想知道它到底是如何运作的,因为我以前试过,只是没有用双引号,所以我想知道双引号是什么意思。我并不是想让它看起来像是一个毫无价值的答案,它实际上帮助我更好地理解了它,所以再次感谢您对任何困惑感到抱歉祝您愉快@CompoMarky2019,您现在试过了吗?你能确认它完全按照预期工作吗?
what i want it to do is open a file in notepad++ and be able to run more commands 
 the way its written now it will open the program but waits for the program to close to return the prompt