DOS/Windows Command 0wns you

bmacd

Lifer
Jan 15, 2001
10,869
1
0
I had 4 files that i couldn't delete in windows for whatever reason (suspected viruses) and windows failed to recognize the four files as files....in that i couldn't get the properties on them, file size, attributes, etc. I opened up the command prompt, only to change directories, only to find out that win2k doesn't automatically show the 8.3 extension of every directory. I did a quick dir /? and saw that you need to do the /x switch to view the long named directories as 8.3. So...after i found the files, i deleted them without any problem.

-=bmacd=-
 

guyver01

Lifer
Sep 25, 2000
22,135
5
61
you do know you can quote the long filename right?

del "long file name which wont delete in windows"


quotation marks 0wnz j00!!

 

bmacd

Lifer
Jan 15, 2001
10,869
1
0
i tried the quotes, but they didn't work. I know it works in 98 and XP, but it doesn't seem to be working in win2k.

-=bmacd=-
 

Peetoeng

Golden Member
Dec 21, 2000
1,866
0
0
This should work as well, I think:

del long_file_na*.*

Be careful not to erase other files, tho.
 

geno

Lifer
Dec 26, 1999
25,074
4
0
Ahhh, the good ol days :) I feel like just setting up a 486/Pentium 1 box and runing DOS/Win3.1 on it some times :D
 

RGN

Diamond Member
Feb 24, 2000
6,623
6
81
Originally posted by: bmacd
i tried the quotes, but they didn't work. I know it works in 98 and XP, but it doesn't seem to be working in win2k.

-=bmacd=-


I know it works in 2K... I helped a co-worker do it Friday.