1.

Solve : batch file will not run from windows?

Answer»

My batch file will run fine if executed from the command prompt, but goes nowhere if executed from windows (start/run or DOUBLE click in windows exploror). When started from Windows it simply starts DOS and stops. Any help?POST your coding please...an example of batch file, display-dir.bat, that stalls:

c:
cd temp
dir

this simple batch file will run properly if executed from the dos prompt, however, if executed from Windows (either Start/Run or windows explorer) it opens a DOS window, but does not run.

All batch files respond the same way.

ThanksSimple .bat files run commands consecutively so your file gets to the end and exits before displaying the output of your dir command.

Just put a Pause command after the dirYour batch file does run, but it doesn't have any reason to stay open after it finishes executing your commands.

Just put a Pause command like dusty SAID or DIRECT the said output into a TEXT file.



Discussion

No Comment Found