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

copy files

Reply to Message Icon

Original Message
Name: chue
Date: November 12, 2002 at 15:48:05 Pacific
Subject: copy files
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?


Report Offensive Message For Removal

Response Number 1
Name: dtech10
Date: November 12, 2002 at 16:06:05 Pacific
Subject: copy files
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: chue
Date: November 12, 2002 at 16:11:53 Pacific
Subject: copy files
Reply: (edit)

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?


Report Offensive Follow Up For Removal

Response Number 3
Name: Secret_Doom
Date: November 12, 2002 at 16:43:43 Pacific
Subject: copy files
Reply: (edit)

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

_____________________________________________________


Report Offensive Follow Up For Removal

Response Number 4
Name: chue
Date: November 12, 2002 at 17:01:34 Pacific
Subject: copy files
Reply: (edit)

Secret_doom,

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: copy files 

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software