/build/static/layout/Breadcrumb_cap_w.png

how to copy a folder with files in it?

Hello,

I have been trying to figure out how to do this via the K1 or the K2.  I need to copy a folder(and its contents) called RDP Shortcuts to C:\Program Files\.

I have tried to figure out how to copy via xcopy and robocopy but I have been unsuccessful through a network share either in a post install task or from a script via the K1

I have tried to figure out how to do a file synchronize from the K1 I am unable to as I am not sure how/what to tie it to a program as you have to, to upload the folder

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: rockhead44 9 years ago
Red Belt
0

Top Answer

Zip up the directory with the files in it. Next, create a new Software Inventory record with a name you'll understand. Upload the zip file to this software inventory record. Make sure you have all required operating systems selected. 

Then go to File Synchronizations and create a new one. Use the record you just created for your "file" then type the path you are targeting. 

Check "persist" to ensure it stays there or gets repushed if someone deletes it. Select your device (s) and set your schedule. That should do it. I have done this numerous times and had great success. 

Comments:
  • thank you that worked :-) - dcharlton 9 years ago
Posted by: yasheshlele 9 years ago
Senior Yellow Belt
0
xcopy K1 "\\MachineName\c$\Program Files\K2\"  /S /E

This will copy all content from K1 to K2.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ