Re: Start process with batch file - want to close DOS console

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Pegasus (MVP) wrote:
"spasmous" <spasmous@xxxxxxxxx> wrote in message
news:1169582464.850231.294580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I want to put a .bat file in my startup folder to run the following
command:

"C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow

It starts an X server and basically runs in the background. The problem
is a DOS console opens up and stays there until I manually close it.
The X server continues running fine after I close it. What I want is
for the DOS console to execute the command then go away. I can't figure
it out - tried various combinations of cmd /c, start /d and other
things that don't work. Help appreciated!


Try this:

start /b "Spasmous" "C:\Program Files\Xming\Xming.exe"
:0 -clipboard -multiwindow

Awesome - it works great. Thank you Pegasus.

.



Relevant Pages

  • Re: Batch script for maintaing remote services
    ... Thanks again Pegasus. ... using taskkill command to kill the service. ... Taskkill.exe will kill a TASK, ... You can look up your SMTP mail server with nslookup but there are some ...
    (microsoft.public.windowsxp.general)
  • Re: Batch script for maintaing remote services
    ... Thanks again Pegasus. ... using taskkill command to kill the service. ... Taskkill.exe will kill a TASK, ... You can look up your SMTP mail server with nslookup but there are some ...
    (microsoft.public.windowsxp.general)
  • Re: Start process with batch file - want to close DOS console
    ... It starts an X server and basically runs in the background. ... is a DOS console opens up and stays there until I manually close it. ... for the DOS console to execute the command then go away. ...
    (microsoft.public.windowsxp.general)
  • Re: Start process with batch file - want to close DOS console
    ... Try finish the .bat file with exit on the last line. ... It starts an X server and basically runs in the background. ... is a DOS console opens up and stays there until I manually close it. ... for the DOS console to execute the command then go away. ...
    (microsoft.public.windowsxp.general)
  • Start process with batch file - want to close DOS console
    ... I want to put a .bat file in my startup folder to run the following ... It starts an X server and basically runs in the background. ... is a DOS console opens up and stays there until I manually close it. ... for the DOS console to execute the command then go away. ...
    (microsoft.public.windowsxp.general)