Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-27-2004, 12:57 PM   #1
Member (3 bit)
 
Join Date: Jul 2004
Location: Charlotte, NC
Posts: 4
Send a message via AIM to SUTHNR
DOS - CD to Directory with space in name

Hey Guys/Gals,
I'm trying to set up a batch file in DOS that runs overnight and copies files across the network for duplicate backup storage. Problem I am running in to is I need to access a directory that has a space in the name - within the first 6 characters.

xcopy t:\Programs\Eudora~1\User Data c:\zz-3sx~1\Eudora-Pro-Email\ /e /v /h /k /y /r /f

The problem I am running into is I can NOT figure out how to access that "User Data" folder. I have tried just navigating (via dos CD command) into it and still can't get into it.

Any ideas? Or is it something that is just not doable in the old 8.3 naming convention?

Thanks!!
EricB
SUTHNR is offline   Reply With Quote
Old 07-27-2004, 01:00 PM   #2
RJ
Member (14 bit)
 
Join Date: Feb 2000
Location: Offenbach/Main (Germany)
Posts: 8,485
Send a message via ICQ to RJ
If you are in true DOS, the name will be converted to 8.3 format using the ~.
So User Data would be USERDA~1 . .. unless there is already something that begins with User Da, then it would be USERDA~2 and so on.

If you're in a DOS box then putting the path in these signs: ""
then it should work too. It'd be like

xcopy "t:\Programs\Eudora~1\User Data" c:\zz-3sx~1\Eudora-Pro-Email\ /e /v /h /k /y /r /f

If you are in true DOS then the Eudora-Pro-Email has to be shortened as well . .it'd be EUDORA~1

RJ
__________________
All's right with the world when your PC is working right.
RJ is offline   Reply With Quote
Old 07-27-2004, 01:16 PM   #3
Member (3 bit)
 
Join Date: Jul 2004
Location: Charlotte, NC
Posts: 4
Send a message via AIM to SUTHNR
Thanks for the quick reply!!

Sorry, operating in a DOS box in XP Pro.

The quotes worked on the xcopy command.

But same does not appear to hold true when just navigating folders in the dos box with the CD (CHDIR) command. Is there a way to navigate into a folder directly that includes a space in the first 6 characters (i.e., my "User Data" folder)?

Thanks again,
EricB
SUTHNR is offline   Reply With Quote
Old 07-27-2004, 01:20 PM   #4
RJ
Member (14 bit)
 
Join Date: Feb 2000
Location: Offenbach/Main (Germany)
Posts: 8,485
Send a message via ICQ to RJ
Ah, you are using the console of Windows XP.
Well, if you just want to change the directory with CD, you don't need the quotes at all. Just type in

cd user data

and it'll work. I just tried it on my PC. It's even not case sensitive.

RJ
RJ is offline   Reply With Quote
Old 07-27-2004, 01:55 PM   #5
Member (3 bit)
 
Join Date: Jul 2004
Location: Charlotte, NC
Posts: 4
Send a message via AIM to SUTHNR
Hmmm...... Maybe my machine's just on crack Wouldn't be the first time...

I try the same thing here and I get a "Too many parameters - data" error.

Is there some other "console" as you called it different from the command prompt (start/run/command)?

Thanks,
EricB
SUTHNR is offline   Reply With Quote
Old 07-27-2004, 02:02 PM   #6
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,108
start->run->CMD
EzyStvy is online now   Reply With Quote
Old 07-27-2004, 02:10 PM   #7
RJ
Member (14 bit)
 
Join Date: Feb 2000
Location: Offenbach/Main (Germany)
Posts: 8,485
Send a message via ICQ to RJ
I just used the one in the accessories folder in the start menu . .. but that is just a shortcut to what EzyStvy said: CMD

RJ
RJ is offline   Reply With Quote
Old 07-27-2004, 03:44 PM   #8
Member (3 bit)
 
Join Date: Jul 2004
Location: Charlotte, NC
Posts: 4
Send a message via AIM to SUTHNR
Aha... Let it be known that there is command.com and cmd.exe. *I* didn't realize that. I've been working in the "command" version

cmd.exe operates in full long-filename format, while command.com only operates in the 8.3 convention.

I'll see how things come out now.

Thanks for the input!
EricB
SUTHNR is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:32 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2