Re: NVDA Portable Start
Chris Mullins
Hi In a previous message I posted:
@echo off start <full path including drive letter> Exit
I have subsequently found that the start command will launch the program in the filepath without waiting for it to terminate and exit the command prompt but this only occurs if the program being launched is a windowed application, otherwise the command prompt window will not close until the launched program has terminated. Gene mentioned that he had successfully launched MP3 Direct Cut as I did Notepad and that would be because both of these programs have a GUI.
The following batch file content worked fine for me, in that it launched NVDA and closed the command prompt window:
@echo off "C:\Program Files (x86)\NVDA\nvda_slave.exe" launchNVDA -r
Howard asked about the filepath bing in quotes. In the example above the filepath has to be in quotes because it contains a space. If the whole filepath is an unbroken character string, you do not require quotes. This harks back to the days of DOS when spaces were not allowed in folder/file names. When Windows eventually allowed folder/file names to contain spaces, quotes were introduced to delimit the filepath so that older command parsers could still work with the new formats for folder/file names. Apologies for supplying the misleading information.
Cheers Chris Sent from Mail for Windows
From: Gene
Sent: 28 November 2021 13:01 To: nvda@nvda.groups.io Subject: Re: [nvda] NVDA Portable Start
I find this subject interesting but I'm not sure if it should continue here or on the chat list. My experience is that if I write a batch file to run something, I don't get stuck in the terminal. Whatever runs closes automatically.
I just tested this by creating a batch file to run MP3 Direct Cut. Whatever the environment is, It runs and then automatically closes. I haven't created many batch files to run programs but the ones I have work like that with the exception of NVDA. Does NVDA run in some unusual way, perhaps related to Python that causes the terminal window not to close?
Gene On 11/28/2021 6:16 AM, Chris Mullins wrote:
|
|