well the map drive line actually happens very early in the script and all subsequent @UserID calls are still blank.
here is the script:
Code:
CALL "script_news.kix"
USE F: "\\ash2\courses"
USE G: "\\asd\Warehouse"
USE H: "\\ash1\@userid"
USE J: "\\ajh2\gqapps"
USE K: "\\ash1\abingtonian"
USE L: "\\seclib1\data"
USE P: "\\seclib1\prog"
USE M: "\\ash2\musiclab"
USE R: "\\ash2\arithmetic"
USE S: "\\ash1\shared"
USE T: "\\ash2\teachers"
USE Y: "\\asd\SpecialEd"
SETTIME "\\AsH1"
CALL "script_run_extra.kix"
CALL "script_av.kix"
script_run_extra.kix --
Code:
$SERVER = "ASH1"
IF @ProductType = "Windows XP Professional"
$Result=WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz", "NoRun", 1, "REG_DWORD")
ENDIF
IF (@ProductType = "Windows 98")
IF (@UserID = "")
OPEN (1, "\\" + $SERVER + "\login\check\_blankusers.txt", 5)
WRITELINE(1, "PC: " + @WKSTA + " -- Operating System Build: " + @BUILD + " -- Date: " + @Date + " @@ " + @Time + @CRLF)
CLOSE (1)
ENDIF
ENDIF
SELECT
CASE @ProductType = "Windows 95"
GOTO run_it
CASE @ProductType = "Windows 98"
GOTO run_it
CASE @ProductType = "Windows XP Professional"
IF EXIST ("C:\Program Files\IBM\Java141\bin\java.exe")
MD "%USERPROFILE%\.java"
COPY "\\" + $SERVER + "\login\properties141" "%USERPROFILE%\.java\properties141"
ENDIF
ENDSELECT
GOTO end
:run_it
shell "\\" + $SERVER + "\login\regedit\update.bat"
:end