ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Simple Batch file which I cant do! Copy/ Move



  E39 530i
Need a batch file which does the following. Copies all files from c:\folder1 to c:\folder2, then moves all the files from c:\folder1 to c:\folder1\archive.

I can do the copying process but not the moving part any ideas?:mad:

cheers
 
  Trophy #267
not sure move does folders, only files. it may work if you have no subfolders.
Alternatively rar them via cmd line to the archive & then delete
c:\rar.exe a -pPASSWORD -dh c:\destination.rar c:\folder1\*.* is what we use
 
  E39 530i
xcopy "\\server3\calls\company\xyz.WAV" c:\test\local /S /Y

move "\\server3\calls\company\xyz.WAV" \\server\Calls\company\Archive calls

Ideally I want to copy all the wav files within the company folder, and move to the archive folder, but im just trying it with one file first.
 
  Cupra
You need the inverted comas around the last section due to the space in the name:

move "\\server3\calls\company\xyz.WAV" "\\server\Calls\company\Archive calls"
 


Top