Re: Batch File Problem



Tony P. wrote:
Hello,

I have added a batch file to my Startup folder to execute whenever
Windows boots. The batch file works ok but it leaves a blank command
(DOS)window on the screen. The only thing in the command window is a
flashing cursor. I would like close this window using the batch file
after the file executes. I have tried adding an exit command to the
batch file but it doesn't seem to work. When the command window
appears on the scrren, the only way to remove it is to click the X in
the upper right corner. I can't enter any commands in the command
window. Is there a way to close the command window in the batch file?

Put the word EXIT as the last line of your batch file.


.



Relevant Pages

  • Re: batch question
    ... window at great speed, without being executed. ... all I want is for the command to work inside a command prompt window. ... Your original batch file had two lines. ... you fell into a well-known trap: you are not executing ping.exe ...
    (microsoft.public.windowsxp.general)
  • Re: Perfmon and batch file
    ... > event viewer and run command file. ... > but no execute the cmd file or execute it but not execute the ... You are probably making some assumptions in your batch file ... @echo off ...
    (microsoft.public.windows.server.general)
  • Re: Batch File Problem - Batch File Enclosed
    ... I have added a batch file to my Startup folder to execute whenever ... The batch file works ok but it leaves a blank command ... I would like close this window using the batch file ...
    (microsoft.public.windowsxp.general)
  • how to compile C:WINCE500PUBLICCOMMONOAKCSPX86DOSLOADCEPC
    ... Build instructions for loadcepc.exe ... a standard cmd.exe window. ... Execute the batch file setupenv.bat: ... command promt ...
    (microsoft.public.windowsce.platbuilder)
  • Build instructions for loadcepc.exe
    ... Build instructions for loadcepc.exe ... a standard cmd.exe window. ... Execute the batch file setupenv.bat: ... command promt ...
    (microsoft.public.windowsce.platbuilder)