Hi,

I am trying to deploy a program, which consists of copying several folders to the local C drive and importing some entries in the registry.

The script copies the ZIP file to the KACE folder, and creates the folder at the root of the local C drive after checking if it does not already exists, but the automatically extracted files are not copied to the newly created folder.

Can somebody help? My script is below :

 cd\
md "C:\XYZ"
cd "C:\Documents and Settings\All Users\Dell\KACE\kbots_cache\packages\kbots\111\XYZ"
xcopy "*.*" "C:\XYZ" /e

 

Many thanks in advance for your time.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

try using

md c:\xyz

xcopy $kace_dependency_dir\*.* c:\xyz /e

Answered 12/14/2012 by: SMal.tmcc
Red Belt

  • Thanks for your response, unfortunately this does not work. The agent extracts the files and folders from the dependency, but the content of the sub folder xyz.123 is not moved to c:\xyz.123
    • try xcopy $kace_dependency_dir\*.* c:\xyz /s /e /q /y
Please log in to comment
Answer this question or Comment on this question for clarity

Share