General discussion

  • Creator
    Topic
  • #2316898

    Logon scripts npt running in Win98

    Locked

    by bhrdwh ·

    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

All Comments

  • Author
    Replies
    • #2740677

      Reply To: Logon scripts npt running in Win98

      by lumberjack ·

      In reply to Logon scripts npt running in Win98

      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

      • #2740675

        Reply To: Logon scripts npt running in Win98

        by lumberjack ·

        In reply to Reply To: Logon scripts npt running in Win98

        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

      • #3369771

        Reply To: Logon scripts npt running in Win98

        by bhrdwh ·

        In reply to Reply To: Logon scripts npt running in Win98

        Poster rated this answer.

    • #2740560

      Reply To: Logon scripts npt running in Win98

      by ctmoore1998 ·

      In reply to Logon scripts npt running in Win98

      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.

    • #3543819

      Reply To: Logon scripts npt running in Win98

      by stownsend ·

      In reply to Logon scripts npt running in Win98

      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

    • #3543814

      Reply To: Logon scripts npt running in Win98

      by stownsend ·

      In reply to Logon scripts npt running in Win98

      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

Viewing 3 reply threads