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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dumb DOS question

Status
Not open for further replies.

pixiepoet

Technical User
Jul 25, 2002
51
0
0
US
I'm a DOS dummy! PLease help me!

I am trying to program a DOS batch file to correct some FoxPro integrated with ACAD application. It runs ok, but what line of code should I write to close out the little DOS window that pops up?

I tried "exit" and that doesn't work!
 
If you are running the batch file as a standalone program, you can create a shortcut and select "Close on Exit" on the shortcut's program tab. Otherwise, if you're calling it from FoxPro, I would have expected the "exit" command to work. But I'm no windows expert. Hmmmmmm......
 
I'm having additional problems. I have tried a line on the batch code that says:

del *.*

Except every time I run the batch file it gets stuck there because it says "Are you sure you want to delete this?"

How do I make it so that it automatically says "y" to this on the batch file. Typing in a "Y" as a line of code does not work!
 
try del *.* /Y
You can see the dos command syntax by typping help <command>
Ex. help delete or delete /?
EMC
 
pixiepoet,
i use for oldier OS
echo y|del *.*
for NT and higher
cmd /c del *.* /q
Tesar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top