JSI Tip 0659 - Your Windows client logon script box stays open.

Jerold Schulman

August 16, 1998

1 Min Read
ITPro Today logo

In tip 256, we switched to the "Windows" directory before exiting the script. If that doesn't work, or is intermitant, try the following at the end of the script:

if %OS% == Windows_NT goto WNT
if exist c:windows*.* goto W3
if exist c:win95*.* goto W95
if exist c:win98*.* goto W98
REM you can add any other directories that you use
goto end
:WNT
cd %SystemRoot%
goto end
:W3
cd c:windows
if exist c:windowslmscript.$$$ goto end
goto lms
:W95
cd c:win95
if exist c:win95lmscript.$$$ goto end
goto lms
:W98
cd c:win98
if exist c:win98lmscript.$$$ goto end
:lms
echo . > lmscript.$$$
:end
exit

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like