Computing.Net > Forums > Disk Operating System > copy files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

copy files

Reply to Message Icon

Name: chue
Date: November 12, 2002 at 15:48:05 Pacific
OS: 2000
CPU/Ram: 1.1G
Comment:

I want to write a batch file to copy files from one directory to anyother. However, I can not transfer into a directory with a space in the name such as " program file".
How would i be able to do this?



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: November 12, 2002 at 16:06:05 Pacific
Reply:

Hi

as dos only supports 8 characters you have to use ie. copy c:\Temp\*.* c:\Progra~1
You have to shorten the name to 6 chars and add the "~1" chars.


0

Response Number 2
Name: chue
Date: November 12, 2002 at 16:11:53 Pacific
Reply:

Ok, I understand. however im trying to put it into a folder inside of the progam folder. for example. copy /y file.doc c:\program file\folder\subfolder

the program file is standard name in windows and this means I would have to change a lot of files names because almost every file have a "space" in the names.

Is there another way around it?


0

Response Number 3
Name: Secret_Doom
Date: November 12, 2002 at 16:43:43 Pacific
Reply:

Instead of using

copy /y file.doc c:\program files\folder\subfolder

use this:

copy /y file.doc "c:\program files\folder\subfolder"

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br

_____________________________________________________


0

Response Number 4
Name: chue
Date: November 12, 2002 at 17:01:34 Pacific
Reply:

Secret_doom,

Thanks, that works great.. gosh..why didn't I think of doing it that way.. doh!..
Thanks again


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


getting DOS to read CD-RO... scrolling up in dos promp...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: copy files

copy files www.computing.net/answers/dos/copy-files-/10684.html

Copying files via dos www.computing.net/answers/dos/copying-files-via-dos/12661.html

Copying Files www.computing.net/answers/dos/copying-files/9601.html