From the command mode -DOS

P

PCOR

While in COMMAND mode you can delete a folder and its subdirectories with
the command RD /s
But DOS does not accept spaces such as Rd/ s MY documents//my
pictures/pictures
I had to change my folders to "MYDOCUMENTS"(no space) and the same with
MYPICTURES"then run the command Rd/ s MYdocuments//mypictures/pictures
to erase the folder "pictures" Once that was done I had to rename
MYDOCUMENTS to MY DOCUMENTS and MYPICTUES to MY PICTURES(added the spaces)
What is the proper syntax in DOS to go to C :\MY Documents\MY PICTURES
Again thanks for the help
 
S

Shenan Stanley

PCOR said:
While in COMMAND mode you can delete a folder and its subdirectories
with the command RD /s
But DOS does not accept spaces such as Rd/ s MY documents//my
pictures/pictures
I had to change my folders to "MYDOCUMENTS"(no space) and the same
with MYPICTURES"then run the command Rd/ s
MYdocuments//mypictures/pictures to erase the folder "pictures" Once that
was done I had to rename
MYDOCUMENTS to MY DOCUMENTS and MYPICTUES to MY PICTURES(added the
spaces) What is the proper syntax in DOS to go to C :\MY Documents\MY
PICTURES Again thanks for the help

Just use quotes..

For example..

RD /S "C:\Documents and Settings\username\My Documents\My Pictures"
 
V

Vagabond Software

PCOR said:
While in COMMAND mode you can delete a folder and its subdirectories with
the command RD /s
But DOS does not accept spaces such as Rd/ s MY documents//my
pictures/pictures
I had to change my folders to "MYDOCUMENTS"(no space) and the same with
MYPICTURES"then run the command Rd/ s MYdocuments//mypictures/pictures
to erase the folder "pictures" Once that was done I had to rename
MYDOCUMENTS to MY DOCUMENTS and MYPICTUES to MY PICTURES(added the spaces)
What is the proper syntax in DOS to go to C :\MY Documents\MY PICTURES
Again thanks for the help


Use quote marks around the path name. For example:

C:\>rd /s "C:\Documents and Settings\carl\My Documents\Copy of Max Payne Savegames"

That should work for you.

carl
 
D

Detlev Dreyer

PCOR said:
While in COMMAND mode you can delete a folder and its subdirectories
with the command RD /s
But DOS does not accept spaces such as Rd/ s MY documents//my
pictures/pictures

In addition to the other answers, you can always use the folder's
short (DOS) name instead. Example: RD /s MYDOCU~1
You can get the short names when using DIR /x
 
A

Al Dykes

While in COMMAND mode you can delete a folder and its subdirectories with
the command RD /s
But DOS does not accept spaces such as Rd/ s MY documents//my
pictures/pictures
I had to change my folders to "MYDOCUMENTS"(no space) and the same with
MYPICTURES"then run the command Rd/ s MYdocuments//mypictures/pictures
to erase the folder "pictures" Once that was done I had to rename
MYDOCUMENTS to MY DOCUMENTS and MYPICTUES to MY PICTURES(added the spaces)
What is the proper syntax in DOS to go to C :\MY Documents\MY PICTURES
Again thanks for the help

Are you using COMMAND.EXE for a reason ? CMD.EXE is the native NT
shell, and it should be used if possible and has lots of useful
features. For instance; in a CMD shell I can use command
completion. For example:

CD C:\

CD "doc<TAB>

will magically expand to

CD "Documents and settings"

Which is what you want, but with lots less typing. "<TAB>" is the tab
key. This is a feature that interactive mainframe computer systems
have had since the mid-1970's.
 
D

David Candy

This isn't Dos. This is a console WINDOWS program. Dos's RD (also available in XP) does not support the /s switch.
 
D

David Candy

Experiment - Type

In Start Run
command

Type
dir /?

In Start - Run
cmd

Type
dir /?

In Start Run
cmd /k dir /?

In Start Run
command /k dir /?

One is different. You can also monitor Task Manager top see cmd load untill the dir finishes processing (if in 25 line mode help is two pages so it waits for any key so you can see cmd in the process list). (command is run inside ntvdm.exe).
 
A

Alex Nichol

PCOR said:
While in COMMAND mode you can delete a folder and its subdirectories with
the command RD /s
But DOS does not accept spaces such as Rd/ s MY documents//my
pictures/pictures

If you want to work on a folder or path\file that has a space in it,
wrap it in Quotes - so
RD /S "My Documents"

(which I would not advise, but that is BTW)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top