|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
how can i find *.* files in directory C:\ (+ subdirs) and remove them all?
_________ may death strike you.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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.
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
nope im making my own FDisk.. i need to make sure this script will delete everything it can..
_________ may death strike you.
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
And you want to do this because?
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
im installing win2k and i want to watch win98 freak out, when it finds missing files
_________ may death strike you.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
deleting every file in C:\ is stupid but....
alias remdir {
.echo -q $findfile(C:\,*.*,0,.remove $1-)
}
new username: tidy_trax
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
not just C:\, every sub dir too
_________ may death strike you.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Doing that in mIRC would be ugly, it would require recursion. Just use the DOS deltree command.
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
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
_________ may death strike you.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
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 :\
new username: tidy_trax
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
soon as i get the disk im going to watch the fire works
_________ may death strike you.
|
|
|
|
Joined: Jun 2003
Posts: 32
Ameglian cow
|
Ameglian cow
Joined: Jun 2003
Posts: 32 |
I guess im the only one who believes he might be abusing this..
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Nope, I think he is too.
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
not at all. i want to crash win98 since im going to fdisk any way and install win2k
_________ may death strike you.
|
|
|
|
Joined: Aug 2003
Posts: 73
Babel fish
|
Babel fish
Joined: Aug 2003
Posts: 73 |
You know if you do this, it may do something besides delete data...
The blue monkey is out of its barrel...
|
|
|
|
Joined: Sep 2003
Posts: 4
Self-satisified door
|
Self-satisified door
Joined: Sep 2003
Posts: 4 |
haha what a ignorant thing to do (imo) have fun lol !
|
|
|
|
|
|