samiam41
asked on
Copy dir and files with robocopy
Greetings experts. I am trying to write a batch script and need it to copy a dir with a couple files in it. I can get the script to copy the files from the dir but not the dir (data folder) itself.
The script keeps copying the files from the data dir to the app dir but I need the data dir to be in the app dir. I'm sure there is a switch I'm missing but after testing it for awhile, I need to have someone else look at it.
Thanks experts.
robocopy "\\server\public\formsgen\data" "\\%computer%\c$\program files\app"
The script keeps copying the files from the data dir to the app dir but I need the data dir to be in the app dir. I'm sure there is a switch I'm missing but after testing it for awhile, I need to have someone else look at it.
Thanks experts.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER