Link to home
Start Free TrialLog in
Avatar of kvnsdr
kvnsdr

asked on

DOS commands in Windows 2000 or XP Batch File Blink???

If I include all the text below in a batch file it will open and close very fast (blink) and never use the pause command. If I commnet-out the FOR syntax the dos window will remain open.

Also the following text run fine as long as I use the manual command prompt, batch files are the problem.....

CD C:\REPORTS

For %a IN (*.*) do REN %a %a.rtf  

PAUSE
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

what happens if you run the batch file from the command line. This should give you the error that pops up...
ASKER CERTIFIED SOLUTION
Avatar of Filips Houbrechts
Filips Houbrechts
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kvnsdr
kvnsdr

ASKER

That works, thank you..........
Thanks for the A.