[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Deleting Files
- Subject: Re: Deleting Files
- From: "ig" fbarrau@xxxxxxxx
- Date: Mon, 26 Apr 2004 04:48:13 -0300
> I'll be damned...it works perfectly (and even though it exits DOS like I
need it to, I can't see how it's done. Is "exit" just a
> by-product of this string of commands? What if you didn't want it to
exit?).
To exit or not depends on which options you use to go to shell (initialices
a new instance of the command.com).
If you want to remain in DOS, put the command in xy:
BC dos /k echo y| del *.*
It will execute the "echo" and "del" (or other command) and will remain to
execute others commands (but this time only keyboard's commands). It will
come back to XY with the first "exit" command received. With the /p option
it doesn't come back to XY in any way (you loose your work in XY!).
>can't delete a directory that isn't empty (although, there's
> probably a work-around for that too).
>
This I don't know how... only empting the directory and afterwards
erasing it with:
BC rmdir c:\tmp\tmp
you certanly already know, (or building and executing a "bat" file with the
several commands and with the "exit" at the end, as Norman does).
Francisco Barrau