Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get started with .bat files? 4

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
I have inherited an ancient .bat file and I want to ad new features to it. Unfortunately, I know almost nothing about .bat files. Currently, when you click it you get a brief message on the screen and the prompt "press any key to continue." When you press a key, it extracts a dump file from an Oracle db and puts it in the same directory as the .bat file.

I want the .bat file to run without any user interaction. I don't want to get the "press any key" stuff. I have looked at the .bat file in Notepad and I think I can guess how to achieve that. I need to eliminate the lines with ECHO "[text]" and the lines with PAUSE. Is that a good guess?

I also want the .bat file to put the dump in a specific directory. I want it to overwrite the existing file in that directory. I want all of this to happen without any Windows dialogue boxes.

When I have finished my modifications, I plan to put the file on my Windows scheduler. That is why I want to eliminate the user input
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top