Link to home
Start Free TrialLog in
Avatar of samiam41
samiam41Flag for United States of America

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.

robocopy "\\server\public\formsgen\data" "\\%computer%\c$\program files\app"

Open in new window


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
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of samiam41

ASKER

....ugh.....  d@mn.  So glad you figured it out but frustrating I overlooked that one piece of the script.  Thanks for your help!