Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-30-2007, 09:25 AM   #1
Solid State Member
 
Join Date: Aug 2007
Posts: 17
Default CMD help

Just wondering how you change directories, etc. to folders with a space in the name.

When I try this code:
cd C:\Documents and Settings

or

cd C:\Program Files

I get an error saying "Cannot find directory: C:\ Program" or "Cannot find directory: C:\Documents"

Halp anyone? =)
__________________

RPressler is offline   Reply With Quote
Old 10-30-2007, 11:09 AM   #2
Golden Master
 
DJ-CHRIS's Avatar
 
Join Date: Apr 2006
Posts: 5,203
Send a message via AIM to DJ-CHRIS Send a message via MSN to DJ-CHRIS Send a message via Yahoo to DJ-CHRIS
Default Re: CMD help

You need quotes around anything with spaces. When you do it your way, for example "and" as well as "Settings" are interpreted as commands.

cd "C:\documents and settings"

This will make windows interpret it all as one thing.
__________________

DJ-CHRIS is offline   Reply With Quote
Old 10-30-2007, 01:44 PM   #3
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: CMD help

Quote:
Originally Posted by DJ-CHRIS View Post
You need quotes around anything with spaces. When you do it your way, for example "and" as well as "Settings" are interpreted as commands.

cd "C:\documents and settings"

This will make windows interpret it all as one thing.

Yes, or you can use cd C:\progra~1
__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Old 10-30-2007, 04:47 PM   #4
Solid State Member
 
mitchell486's Avatar
 
Join Date: Aug 2007
Posts: 16
Default Re: CMD help

Is there any really useful commands anyone can share with me?
mitchell486 is offline   Reply With Quote
Old 10-30-2007, 09:08 PM   #5
Golden Master
 
DJ-CHRIS's Avatar
 
Join Date: Apr 2006
Posts: 5,203
Send a message via AIM to DJ-CHRIS Send a message via MSN to DJ-CHRIS Send a message via Yahoo to DJ-CHRIS
Default Re: CMD help

Quote:
Originally Posted by mitchell486 View Post
Is there any really useful commands anyone can share with me?
The full list of commands
http://ss64.com/nt/index.html
DJ-CHRIS is offline   Reply With Quote
Old 10-30-2007, 09:14 PM   #6
Golden Master
 
freestyler105's Avatar
 
Join Date: Sep 2006
Posts: 7,883
Default Re: CMD help

I think one of the most useful overlooked tools is just the autocomplete. If you're typing a really long directory name, just type the first few letters and hit tab.
__________________
C2D E6600 | 4GB DDR2-800 | 9800GTX+ | Asus P5B-E | 150GB Raptor | 320GB 7200.10 | 750W Xigmatek PSU
freestyler105 is offline   Reply With Quote
Old 10-31-2007, 01:57 AM   #7
Solid State Member
 
mitchell486's Avatar
 
Join Date: Aug 2007
Posts: 16
Default Re: CMD help

oh sweet jesus freestyler... that is amazing... i love that one... duely noted. and thank you all. <3 much.
mitchell486 is offline   Reply With Quote
Old 11-01-2007, 03:46 PM   #8
Solid State Member
 
Join Date: Aug 2007
Posts: 17
Default Re: CMD help

DJ-CHRIS,
Thanks for answering my question, and that list is definately going to be very useful in the future. Props =)

freestyler105,
That's absolutely awesome and I never knew that. That's going to help me alot in the future =)

David Lindon,
Thanks for helping man. Although that command could use some clearing up It's good that you listed it, but what exactly does it do? Is there a certain syntax to it that can be used for other directories?

Thanks again all,
Richard
RPressler is offline   Reply With Quote
Old 11-15-2007, 06:58 PM   #9
Baseband Member
 
Join Date: Nov 2007
Posts: 57
Send a message via MSN to h4x0rInSilence
Exclamation Re: CMD help

If you type cd .. It takes you a directory back . If you type cd [space] the hit tab to toggle through folders in your current directory (p.s if this helps pleeze gimme some credit i dont like being a noob)
__________________

h4x0rInSilence is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0