spawning (del command) DOS 7
I want to create a batch file that will delete all gid files throughout my hard drive.
looking at the deltree command:
Deltree
Deletes a directory and all the subdirectories and files in it.
Syntax:
To delete a directory and all the subdirectories and files contained therein:
DELTREE [/Y] directory
Obviously not only will it delete files but also directorys, not what I want at all.
I could try something like:
del c:\*.gid
but that would only delete gid files in a single directory not all sub directorys. I would asume this would not be dificult, useing perl I couldeasily do this kind of thig, but Im talking batch not perl.
Does someone know if there is a way to delete not only gid files under root but all sub directorys as well, I know in linux you can spesify the -r option to ask for recursive deletion.
Sugestions are welcomed.
Re: spawning (del command) DOS 7
Quote:
Originally posted here by aj67my
I want to create a batch file that will delete all gid files throughout my hard drive.
Does someone know if there is a way to delete not only gid files under root but all sub directorys as well, I know in linux you can spesify the -r option to ask for recursive deletion.
Sugestions are welcomed.
This should do the job if you not have a strange version of dos :)
Code:
:: Deletes all .gid files on your C: drive.
c:
cd \
del *.gid /s
~micael
Re: Re: spawning (del command) DOS 7
Quote:
Originally posted here by micael
This should do the job if you not have a strange version of dos :)
Code:
:: Deletes all .gid files on your C: drive.
c:
cd \
del *.gid /s
~micael
AFAIK this does not work (unless you are running some strange version of DOS that I don't know about) :p