Moving a single file to a workstation
I have to move a new .ini file to every workstation (40+) from time to time, is there an easy way to do this with PDQ deploy?
-
Not sure of the exact format of the xcopy command in my batch file. I'm not a very good .BAT programmer. I spent about 4 hours yesterday trying to write this in a BAT file and also with VBscript and they all don't work.
Is PDQDeploy going to feed the workstation destination to my command file?
-
Here's a sample of what i use
---------------------- Code starts -------------------
c:
cd \
mkdir vmware
xcopy \\server1\sccm\Software_Package\VMWare\Win7Ent32bit\DegCheck\*.* /Y /E /Q /H C:\vmware---------------------Code Ends-------------------------------------
In this, I have created a folder to place the files in.
xcopy is able to use the UNC path of the file, in your case, the INI file, and is copying to the local workstation's C:\VMWare folder that was created in the prior step. The switches used was just to omit any error messages (habit).
Hope this helps... you may want to look up on the switches of xcopy to see which would suit your needs.
-
Ooops, didn't answer your question.
QUOTE: "Is PDQDeploy going to feed the workstation destination to my command file?"
PDQ deploy acts as if you're sitting at the workstation itself running all the commands.
In the sample above, when i referenced C:\vmware, it's the local workstation (client) folder that the files are being copied to.
Hope that made sense.
-
TonsOFun shows a great method for copying files. If you are running Pro mode you can also use the Command step. I like doing this for rather simple copy functions.
Like TonsOFun I place my files out on a network share. Then I have the copy command executed in a Command Step during deployment. Here is an example that I use to copy the file, config.ini, from a network share to the Program Files\MyApp directory on my targets.
xcopy "\\Scranton\Deploy\Misc\config.ini" "C:\Program Files\MyApp\" /Y
-
This is the command I'm running.
xcopy "\\Server\Revit-HOME\Revit_Builds and Downloads\RAC 2010\revit.ini" "C:\Program Files\AutoDesk\Revit Architecture 2010\Program\revittest.ini" /Y
Even if I make it a command to run. It returns an error code 2.
Please sign in to leave a comment.
Comments
12 comments