Xcopy using script
For the life of me I cannot figure out how to copy a file to all computers using the K1000 appliance. I dont want to use File Sync because I need to push the file out right away and so far what I've seen is that File Sync sucks for that - you have to wait until the machine checks in - thats silly.
So in the scripts section, I'm trying to run an online script, run as domain admin, and I've tried two different tasks 1- launch cmd and commit "xcopy \\share\folder\file c:\" and 2) launch batch file (with the same command). I've used start /wait and that doesn't help. Nothing will work so far. It shouldn't be hard to copy a 1K file to all PCs using kace but it has been .
Can someone please help?
So in the scripts section, I'm trying to run an online script, run as domain admin, and I've tried two different tasks 1- launch cmd and commit "xcopy \\share\folder\file c:\" and 2) launch batch file (with the same command). I've used start /wait and that doesn't help. Nothing will work so far. It shouldn't be hard to copy a 1K file to all PCs using kace but it has been .
Can someone please help?
0 Comments
[ + ] Show comments
Answers (10)
Please log in to answer
Posted by:
MoranTug
11 years ago
Posted by:
cblake
13 years ago
Posted by:
RichB
13 years ago
Posted by:
craig.thatcher
13 years ago
You can always add the file needed as a dependency and copy it from the local file system. i.e.
xcopy * c:\
This would copy everything from the dependency directory to the root of C:. Please note that if this is a "new" file and you have replication enabled, you'll have to failover or synchronize your replication machines.
xcopy * c:\
This would copy everything from the dependency directory to the root of C:. Please note that if this is a "new" file and you have replication enabled, you'll have to failover or synchronize your replication machines.
Posted by:
lefttunknown
13 years ago
Posted by:
lefttunknown
13 years ago
I thought about putting the file in \\kbox\client\ but I dont have permissions. Any idea how to change that?
ORIGINAL: RichB
Here's one we use for a simple file copy. For the task choose "Run a Batch File," give it a Script Name and modify these Batch file contents as needed for program "XYZ" and your UNC path to the samba share at "kbox\client."
md "%ProgramFiles%\XYZ"
xcopy "\\kbox\client\XYZ\*.*" "%ProgramFiles%\XYZ" /E /S /H /Y
Posted by:
RichB
13 years ago
Posted by:
lefttunknown
13 years ago
great thank you. I did just figure that out. I am trying to deploy the dell cctk along with the config file so I'm hoping I can do both in 1 script. If anyone has any recommendation, I would love to hear it. I have a thread going here: http://itninja.com/question/servers-installation-help13&mpage=1&key=𔖵
Posted by:
craig.thatcher
13 years ago
Posted by:
RichB
13 years ago
Here's one we use for a simple file copy. For the task choose "Run a Batch File," give it a Script Name and modify these Batch file contents as needed for program "XYZ" and your UNC path to the samba share at "kbox\client."
md "%ProgramFiles%\XYZ"
xcopy "\\kbox\client\XYZ\*.*" "%ProgramFiles%\XYZ" /E /S /H /Y
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.