anywho I have my diagnostix machine (my main machine that never moves/changes) then I have 10 workstations on which I have computers coming and going every day. nearly everyone of these workstations needs to pull files from my diag machine so normally I just do the \\diagnostix\c$ in the run command with simple file sharing turned off and navigate my way to the files I want. I would liek to streamline this process since I pull the same files nearly every time. so I wrote a batch file to do it
here's what I have so far
when the batch file is ran from the diagnostix machine everything works fine and the files go straight to the desktop. however when ran from one of the work stations the %cd% is changed to the local c:\windows\ and I cannot figure out how to fix that. any ideas?xcopy "%cd%\nero 7 install" "%USERPROFILE%\desktop\nero 7 install" /e /i /h
xcopy "%cd%\office2003" "%USERPROFILE%\desktop\office" /e /i /h
xcopy "%cd%\oem editor" "%USERPROFILE%\desktop\oem editor" /e /i /h
xcopy "%cd%\avg free.exe" "%USERPROFILE%\desktop\"
xcopy "%cd%\dd200.exe" "%USERPROFILE%\desktop\"
xcopy "%cd%\firefox.exe" "%USERPROFILE%\desktop\"
xcopy "%cd%\ncleaner.exe" "%USERPROFILE%\desktop\"
xcopy "%cd%\spybotsd160.exe" "%USERPROFILE%\desktop\"
xcopy "%cd%\spywareblastersetup41.exe" "%USERPROFILE%\desktop\"
pause
Edited by pr0n, 11 October 2008 - 02:21 PM.