how can i find *.* files in directory C:\ (+ subdirs) and remove them all?
alias find {
set %i 1
:next
set %x $findfile(C:\,*.*,%i)
if (%x == $null) goto done
if (%x != $null) { echo %x }
inc %i
goto next
:done
}
I wouldn't remove it though, you'd remove everything in C:\, why don't you just echo it, as shown above.
nope im making my own FDisk.. i need to make sure this script will delete everything it can..
And you want to do this because?
im installing win2k and i want to watch win98 freak out, when it finds missing files
deleting every file in C:\ is stupid but....
alias remdir {
.echo -q $findfile(C:\,*.*,0,.remove $1-)
}
not just C:\, every sub dir too
Then by all means go for it,
change echo %x to remove %x
just don't come back and complain that something has gone horribly wrong, anyways, I don't think it will delete everything because it will most likely freeze.
Doing that in mIRC would be ugly, it would require recursion. Just use the DOS deltree command.
bah if something goes wrong im going to do an fdisk anyway so it dont matter im just in the mood to see what win98 will do
should work, i just typed: //.echo -q $findfile(C:\,*.mp3,0,echo -a $1-), it echo'd things like: C:\Documents and Settings\MAT\My Documents\My Music\Tidy Trax - Tidy Boys vs Tidy Girls - Blow Ya Load.mp3
some files that are in use wont get deleted :\
soon as i get the disk im going to watch the fire works
I guess im the only one who believes he might be abusing this..
not at all. i want to crash win98 since im going to fdisk any way and install win2k
You know if you do this, it may do something besides delete data...
haha what a ignorant thing to do (imo) have fun lol !