|
I have a Citrix server and since the "Winnt" system folder is on the P: drive and I need different drive letters mapped (N: drive on Citrix)etc when logging onto Citrix vs logging onto a normal W2k workstation I used the following logon batch file to differentiate the two different envronments.
LOGON.BAT...........
if "%WINDIR%"=="P:\WINNT" GOTO WINFRAME if %OS%==Windows_NT goto WinNT if !%WINSTATIONNAME%==! goto Win95
:Winnt echo MTCLOGON WINNT SECTION rem net time \\Saturn /set /yes net use M: \\fire\MacShare /persistent:no net use S: \\fire\Data /persistent:no echo Dynamics dictionaries are now being updated, please wait...(WINNT SECTION) Copy \\earth\dyreport\*.* c:\eentrprs echo Dynamics dictionaries have now been updated. Thank you! Have a nice Day! :-) net time /set /y Goto End
:WinFrame echo MTCLOGON WINFRAME SECTION net use S: /d >NUL 2>NUL net use S: \\fire\Data /persistent:no >NUL 2>NUL net use M: \\fire\MacShare /persistent:no net use L: \\saturn\Apps /persistent:no net use O: \\Earth\Eenterprise\OLE /persistent:no If not Exist R:\DUsrData\%USERNAME% md R:\DUsrData\%USERNAME% SUBST N: R:\DUsrData\%USERNAME% echo Dynamics dictionaries are now being updated, please wait...(WINFRAME SECTION) Copy \\earth\dyreport\*.dic N:\
Any suggestions?
|