1.

Solve : deleting files with spaces in between the name?

Answer»

hi, i have a problem

suppose i have a file called " TEXT document.TXT"
how do i delete from dos.
the problem is the space between text and document.

i have tried del text\ document.txt ( as in unix ) but it doesn`t work

any help?

THANKS in advance
Include <path><FILENAME> in quotation marks or use the DOS 8.3 format and substitute a question mark for the space.del "text document.txt"
del textdo~1.txt


both work.

If I had a SHORT name file like s t.txt (s, space, t, dot, txt) I could use

del s%20t.txt

but the name still has to fit in the 8.3 format unless you use "doublequotes".



Discussion

No Comment Found