batch file copy command

R

Ross Deforrest

Hi
Sorry to jump in here, but I tried to post and it wouldn't let me.
What I want to do is create a batch file that allows me to copy my
microsoft Works .wcd file (the data file from the works calendar) from its
original location C:\Documents and Settings\All Users\Application
Data\Microsoft\Works to C:\My Documents\AURORA (a directory I have created)

Why do I want to do this? The directory AURORA is on my laptop and is
shared with a mirror directory on my PC. When I want to back up the files
on my laptop to my PC the process is no problem. The problem occurs when I
try to share the works diretory on my PC and My Laptop, since I am running
home version of xp on laptop, it is not allowed in home version to copy
files across network from Documents and settings, Windows, or Program files.
I run the works calendar on both machines, so when from my laptop I try to
back up the calendar to my PC, I am not allowed. So, I want to create a
batch file that will quickly copy that .wcd file into my AURORA directory,
which I can then copy to my PC through the wireless network.

But, when created a text file (saved as .bat) with the folowing command all
on one line . . .

Copy C:\Documents and Settings\All Users\Application
data\Microsoft\Works\mswkscal.wcd C:\My Documents\AURORA

.. . . saved the file and double clicked it, nothing happened

Is there something wrong with my path?
 
P

Pegasus \(MVP\)

Ross Deforrest said:
Hi
Sorry to jump in here, but I tried to post and it wouldn't let me.
What I want to do is create a batch file that allows me to copy my
microsoft Works .wcd file (the data file from the works calendar) from its
original location C:\Documents and Settings\All Users\Application
Data\Microsoft\Works to C:\My Documents\AURORA (a directory I have created)

Why do I want to do this? The directory AURORA is on my laptop and is
shared with a mirror directory on my PC. When I want to back up the files
on my laptop to my PC the process is no problem. The problem occurs when I
try to share the works diretory on my PC and My Laptop, since I am running
home version of xp on laptop, it is not allowed in home version to copy
files across network from Documents and settings, Windows, or Program files.
I run the works calendar on both machines, so when from my laptop I try to
back up the calendar to my PC, I am not allowed. So, I want to create a
batch file that will quickly copy that .wcd file into my AURORA directory,
which I can then copy to my PC through the wireless network.

But, when created a text file (saved as .bat) with the folowing command all
on one line . . .

Copy C:\Documents and Settings\All Users\Application
data\Microsoft\Works\mswkscal.wcd C:\My Documents\AURORA

. . . saved the file and double clicked it, nothing happened

Is there something wrong with my path?

Yes, there is. How does Windows know where your source folder
name ends and the target folder name starts? It does not, unless
you surround both with double quotes (").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top