Discussion Locked

Logon scripts npt running in Win98

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi Guys,
I need your help to create logon script that is running on windows 98. I already have a Login script that runs fine on NT, Win2K or XP systems, not in win9x.
If you have any sample logon script for windows 9x pls send me. I just need to map few drives & synch time from the server.
Akash

9 replies

by lumberjack

Logon script for 9x cn be virtually identical to NT/W2K/XP however it MUST have an .bat extension
(.scr/.cmd etc will not work)

quick example

Net time
Net use G: \\servername\sharename
net use H: \\anotherservername\sharename

can be saved as a text file called eg logon1.BAT

by lumberjack

can also put in

CAll anotherprocedure.bat

particularly useful if you want to do a one off - put any additional command in "anotherprocedure.bat" - this can be amended as often as you like with no change necessary to the main logon script

by ctmoore1998

Logon batch scripts should be the same for all windows platforms if your script is having problems running on a 98 machine check the share names if they don't adhere to the old 8.3 file name you might have a problem here is a sample script that should work on any windows platform including 95/98:
NET USE F: /D /Y
NET USE G: /D /Y
NET USE H: /D /Y

NET USE F: \\SERVER1\SHARE1
NET USE G: \\SERVER1\SHARE2
NET USE H: \\SERVER2\SHARE1B

NET TIME \\SERVER1 /SET /Y

I always run a disconnect command first to ensure that the mappings are always correct.

by stownsend

Some times when running the login scripts using 9x, a user may hit retun if you have a pause in the script which if the "Running Windows Log Script" messgae box hits cancel and stops the script. If 9x scripts the mappeed drives mapped via login scripts get forgotten so its not always a need to /d, but if the users are to log onto several OS's I perfer to keep them in.

Cheers

Stu

by stownsend

Some times when running the login scripts using 9x, a user may hit retun if you have a pause in the script which if the "Running Windows Log Script" messgae box hits cancel and stops the script. If 9x scripts the mappeed drives mapped via login scripts get forgotten so its not always a need to /d, but if the users are to log onto several OS's I perfer to keep them in.

You can also update software using the scripts...

eg...
*****************************
@echo off
echo.
echo connecting drive (O: drive)
net use O: /d
net use O: \\server\share

echo.
echo Please wait whilst the updated app software is copied to your PC
echo.

if exist C:\PROGRA~1\dir\file.EXE goto COPYFILE

GOTO END

:COPYFILE

COPY \\server\dir\file.EXE C:\PROGRA~1\dir\.

:end

*****************************

Cheers

Stu

This discussion is closed to new replies.