Start process with batch file - want to close DOS console

  • Thread starter Thread starter spasmous
  • Start date Start date
S

spasmous

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 finish the .bat file with exit on the last line.

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

John
 
spasmous said:
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
 
Back
Top