Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: deleting files with spaces in between the name  (Read 3018 times)

0 Members and 1 Guest are viewing this topic.

marco

  • Guest
deleting files with spaces in between the name
« on: November 03, 2004, 05:05:07 AM »
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

2k dummy

  • Guest
Re: deleting files with spaces in between the name
« Reply #1 on: November 03, 2004, 07:48:13 AM »
Include <path><filename> in quotation marks or use the DOS 8.3 format and substitute a question mark for the space.

MalikTous

  • Guest
Re: deleting files with spaces in between the name
« Reply #2 on: November 03, 2004, 03:58:23 PM »
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".