|
|
KoRn18
|
KoRn18
|
how can i find *.* files in directory C:\ (+ subdirs) and remove them all?
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
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.
|
|
|
|
KoRn18
|
KoRn18
|
nope im making my own FDisk.. i need to make sure this script will delete everything it can..
|
|
|
|
codemastr
|
codemastr
|
And you want to do this because?
|
|
|
|
KoRn18
|
KoRn18
|
im installing win2k and i want to watch win98 freak out, when it finds missing files
|
|
|
|
pheonix
|
pheonix
|
deleting every file in C:\ is stupid but....
alias remdir {
.echo -q $findfile(C:\,*.*,0,.remove $1-)
}
|
|
|
|
KoRn18
|
KoRn18
|
not just C:\, every sub dir too
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
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.
|
|
|
|
codemastr
|
codemastr
|
Doing that in mIRC would be ugly, it would require recursion. Just use the DOS deltree command.
|
|
|
|
KoRn18
|
KoRn18
|
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
|
|
|
|
pheonix
|
pheonix
|
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 :\
|
|
|
|
KoRn18
|
KoRn18
|
soon as i get the disk im going to watch the fire works
|
|
|
|
WatchMinister
|
WatchMinister
|
I guess im the only one who believes he might be abusing this..
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
Nope, I think he is too.
|
|
|
|
KoRn18
|
KoRn18
|
not at all. i want to crash win98 since im going to fdisk any way and install win2k
|
|
|
|
CyBot
|
CyBot
|
You know if you do this, it may do something besides delete data...
|
|
|
|
Kancer
|
Kancer
|
haha what a ignorant thing to do (imo) have fun lol !
|
|
|
|
|
|