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-11-2006, 03:24 PM   #1
Member (9 bit)
 
GeneC's Avatar
 
Join Date: Mar 1999
Location: Norcross, GA USA
Posts: 444
Send a message via ICQ to GeneC
Angry Fire Dos command syntax incorrect

copy c:\offline.jpg c:\program files\cam_1.jpg

Why does dos say that the syntax of this command is incorrect?? it either says that or that it can not find the file specified. Even if I place the file in the root I get one of these messages. I'm getting a headache trying to figure it out.


GeneC is offline   Reply With Quote
Old 07-11-2006, 03:33 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Try quotes around "C:\Program Files\cam_1.jpp". The space in the path may be causing the problem.
doctorgonzo is offline   Reply With Quote
Old 07-11-2006, 05:02 PM   #3
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,786
Depending on what exact version of DOS, you may have to use c:\progra~1 instead of c:\program files. It's the 8.3 restriction that may be getting you. If your version is LFN capable, you only need to use the quotes as Doc G indicated.
glc is offline   Reply With Quote
Old 07-11-2006, 05:10 PM   #4
Member (9 bit)
 
GeneC's Avatar
 
Join Date: Mar 1999
Location: Norcross, GA USA
Posts: 444
Send a message via ICQ to GeneC
Thumbs up Syntax incorrect

I found the problem. I THOUGHT that the version of XP was more advanced then it truly is. I did in fact have to shorten the path using the ~1 so instead of c:\program files\cam_1.jpg
I had to shorten it to c:\progra~1\cam_1.jpg which then worked.

Thanks for all your help

Gene
GeneC is offline   Reply With Quote
Old 07-11-2006, 05:21 PM   #5
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,786
If you run "command" it's 8.3 restricted. If you run "cmd" it is not.
glc is offline   Reply With Quote
Old 07-11-2006, 06:10 PM   #6
Member (9 bit)
 
GeneC's Avatar
 
Join Date: Mar 1999
Location: Norcross, GA USA
Posts: 444
Send a message via ICQ to GeneC
Talking Syntax incorrect

That's just it. I was using CMD not command. When I bring up a command box the prompt is
H:\DOCUME~1\GENE>

When I bring up a CMD box the prompt is
H:\Documents and Settings\Gene>

But the command line kept saying syntax incorrect. Oh well it's fixed now.


Thanks Again
Gene
GeneC 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 04:08 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2