yes i always use %AppsRoot% function ReplacePath(v) { position="core.js"; whatfunc="ReplacePath()"; var i, rs = new String(v); rs = rs.replace(/%wpipath%/gi, wpipath); // Replace WPI's special environment variables rs = rs.replace(/%root%/gi, root); // WPI parent folder if (hdd=="") rs = rs.replace(/%cdrom%/gi, cddrv); // started from cdrom else rs = rs.replace(/%cdrom%/gi, hdd); // not started from cdrom rs = rs.replace(/%sysdir%/gi, sysdir); // same as before rs = rs.replace(/%dospath%/gi, dospath); // new variable rs = rs.replace(/%oslang%/gi, oslang); // operating system language code rs = rs.replace(/%reboot% /gi, 'shutdown.exe -r -f -t '); // force a reboot after X seconds rs = rs.replace(/%reboot%/gi, 'shutdown.exe -r -f -t 0'); // force a reboot now rs = rs.replace(/%sleep%/gi, wpipath+"\\Tools\\Sleep.exe"); // Pause for x seconds rs = rs.replace(/%extract%/gi, '"'+wpipath+"\\WPIScripts\\ExtractToPath.vbs"+'"'); // Archive Extraction And how do i change this?