commands to copy files/folders to another location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to set up a batch file to copy the content specified folders in a
users My Docs folder to a network drive for backup purposes. My problem
appears to be in the syntax of the path to be copied from. I suspect
possible LFN issues. Can someone point me in the right direction? TIA
 
Bryan said:
I am trying to set up a batch file to copy the content specified folders in a
users My Docs folder to a network drive for backup purposes. My problem
appears to be in the syntax of the path to be copied from.

You will need to use the full form of the path to the folder, and in the
COPY (or XCOPY) any path including spaces must be wrapped in quotes.

For safety I would not assume any current directory at the start, so -
presuming the My Docs has not been moved -
C:
CD "\Documents and Settings\useraccountname\My Documents"
(note that the CD command does not *need* quotes but I include them
as illustration) then appropriate COPY starting from there; eg
COPY "First Folder\*.DOC" some destination
 

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

Back
Top