Build Your Own Arcade Controls Forum

Main => Everything Else => Topic started by: lordtodd75 on August 01, 2006, 04:13:16 pm

Title: Hi, I must be an idiot (command prompt question)
Post by: lordtodd75 on August 01, 2006, 04:13:16 pm
I cannot seem to change directory to a directory with a space in it. I know I have done this a million times and I am rather embarrassed :-[ I am running xp home.

eg. cd "C:\Program Files"

I tried it a bunch of other ways as well (no quotes, all one word), no go.

You wanna hear the best part. I am the head of the IT dept in a multi million dollar company. Hold on, let me get my flame retardant gear  :laugh2:
Title: Re: Hi, I must be an idiot (command prompt question)
Post by: shardian on August 01, 2006, 04:24:46 pm
in a blank c: prompt, put in this
cd\program files

Don't forget you good ol' dir/w command to list contents
Title: Re: Hi, I must be an idiot (command prompt question)
Post by: shardian on August 01, 2006, 04:25:24 pm
Hey, since you are a big-wig can you get me a consulting fee? :laugh2: :laugh2: :laugh2:
Title: Re: Hi, I must be an idiot (command prompt question)
Post by: ChadTower on August 01, 2006, 04:28:41 pm

Either take off the drive letter or use the /d switch for the cd command.

Title: Re: Hi, I must be an idiot (command prompt question)
Post by: thebrownshow on August 01, 2006, 04:52:22 pm
Code: [Select]
cd c:\program files

or

cd "c:\Program Files"

Both worked just fine for me, no quotes.  You're not on the D: drive or anything, are you?  I sat there for 15 minutes once wondering why my prompt didn't change and I didn't get an error.  You can also always try tab-completion and see what that throws at you.
Title: Re: Hi, I must be an idiot (command prompt question)
Post by: AtomSmasher on August 01, 2006, 07:49:04 pm
Since DOS used to only accept 8 characters and they never took that out in later versions, you can still access the files the 8 char way

c:\progra~1
Title: Re: Hi, I must be an idiot (command prompt question)
Post by: Buddabing on August 01, 2006, 10:56:51 pm
Program files is always progra~1 that I know of. To get the 8.3 names for any file, do a dir /x.
Title: Re: Hi, I must be an idiot (command prompt question)
Post by: lordtodd75 on August 02, 2006, 08:44:58 am
Eureka! How could I have forgotten about the dos naming convention?? One too many smacks in the head I suppose. I will blame it on age I just recently hit 30 and I heard it is all downhill from here  :cheers: Thanks fellas.