jnelson993
Posts: 925
Score: 127 Joined: 2/18/2005 From: Minneapolis, MN Status: offline
|
I'm assuming the SETUP.EXE and the DRSYS.INI are in the same folder as the .BAT file on the DP? When you want a batch file to run properly from a DP as a UNC, you have to make sure your .bat references the dp path properly by first setting a variable like this SET MyDIR=%~dp0 And then, when you reference something from the source folder, your .bat file needs to reference it like this %MyDIR%Setup.exe (note, the MyDIR includes the trailing backslash so we don't include it) So here's how I THINK I'd change your script @ECHO OFF SETLOCAL SET THISDIR=%~dp0 %THISDIR%setup.exe /s /uninst /f1%THISDIR%uninstall.iss %THISDIR%setup.exe /s /f1%THISDIR%pacs.iss xcopy "%THISDIR%drsys.ini" "c:\drs\sys\data" /y /c /i pause EXIT 0
_____________________________
Number2 (John Nelson) MyITForum - Blog MyITForum - Forum Posts
|