add (after @echo off) at top of bat, cmd, and awk files that contain references to %ProgramFIles% and/or %APPDATA% --------- rem set T21HOMEDRIVE=Z: set D4GLSRVHOME=%T21HOMEDRIVE%\4glsrv rem set WINUSERAPPDATA=%APPDATA% rem set WINUSERAPPDATA=%HOMEDRIVE%\WINDOWS\appdata set WINUSERAPPDATA=%T21HOMEDRIVE%\appdata --------- all occurances of %ProgramFiles%\4glsrv become %D4GLSRVHOME% all occurances of %APPDATA% become %WINUSERAPPDATA%