batch file missing - Windows NT

This is a discussion on batch file missing - Windows NT ; Wherever I place the following line in script file run on Windows 98 Clients it returns "batch file missing" and the rest of the script is not run. @net use z: \\pfserv\epic52 /yes lastdrive=z is in config.sys What could be ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: batch file missing

  1. batch file missing

    Wherever I place the following line in script file run on Windows 98
    Clients it returns "batch file missing" and the rest of the script is
    not run.

    @net use z: \\pfserv\epic52 /yes

    lastdrive=z is in config.sys

    What could be wrong? Thanks

    The entire script file:

    @echo off
    @Rem --------Begin------Setup Drives
    @rem Sets PFSERV shared and public directories
    @net use f: \\pfserv\cpm$ /yes
    @net use m: \\pfserv\epicor /yes
    @net use p: \\pfserv\production /yes
    @net use q: \\pfserv\ISO /yes
    @net use s: \\pfserv\sales$ /yes
    @net use t: \\pfserv\tools$ /yes
    @net use u: \\pfserv\test /yes
    @net use v: \\pfserv\viruscan$ /yes
    @net use z: \\pfserv\epic52 /yes
    @rem Synchronizes date & time on Workstation to Server date & time
    @net time \\pfserv /set /yes >nul
    @Rem --------End-------Setup Drives

  2. Re: batch file missing


    "webnntp" wrote in message
    news:d1d35423.0309290543.731303b3@posting.google.c om...
    > Wherever I place the following line in script file run on Windows 98
    > Clients it returns "batch file missing" and the rest of the script is
    > not run.
    >
    > @net use z: \\pfserv\epic52 /yes
    >
    > lastdrive=z is in config.sys
    >
    > What could be wrong? Thanks
    >
    > The entire script file:
    >
    > @echo off
    > @Rem --------Begin------Setup Drives
    > @rem Sets PFSERV shared and public directories
    > @net use f: \\pfserv\cpm$ /yes
    > @net use m: \\pfserv\epicor /yes
    > @net use p: \\pfserv\production /yes
    > @net use q: \\pfserv\ISO /yes
    > @net use s: \\pfserv\sales$ /yes
    > @net use t: \\pfserv\tools$ /yes
    > @net use u: \\pfserv\test /yes
    > @net use v: \\pfserv\viruscan$ /yes
    > @net use z: \\pfserv\epic52 /yes
    > @rem Synchronizes date & time on Workstation to Server date & time
    > @net time \\pfserv /set /yes >nul
    > @Rem --------End-------Setup Drives


    You don't actually say so but I assume that the batch
    file you're executing is the domain logon script.

    If so then you need to be aware that Windows 98
    machines map drive z: to \\YourServer\netlogon during
    the logon phase. This means that drive Z: is in use. If
    you make your own connection then you're pulling the
    rug away from your logon script!

    Also: Why the many @ in your batch file? They don't
    exactly improve legibility, and are totally unnecessary.
    Just start your batch file with @echo off.



  3. Re: batch file missing

    "Pegasus \(MVP\)" wrote in message news:...
    > "webnntp" wrote in message
    > news:d1d35423.0309290543.731303b3@posting.google.c om...
    > > Wherever I place the following line in script file run on Windows 98
    > > Clients it returns "batch file missing" and the rest of the script is
    > > not run.
    > >
    > > @net use z: \\pfserv\epic52 /yes
    > >
    > > lastdrive=z is in config.sys
    > >
    > > What could be wrong? Thanks
    > >
    > > The entire script file:
    > >
    > > @echo off
    > > @Rem --------Begin------Setup Drives
    > > @rem Sets PFSERV shared and public directories
    > > @net use f: \\pfserv\cpm$ /yes
    > > @net use m: \\pfserv\epicor /yes
    > > @net use p: \\pfserv\production /yes
    > > @net use q: \\pfserv\ISO /yes
    > > @net use s: \\pfserv\sales$ /yes
    > > @net use t: \\pfserv\tools$ /yes
    > > @net use u: \\pfserv\test /yes
    > > @net use v: \\pfserv\viruscan$ /yes
    > > @net use z: \\pfserv\epic52 /yes
    > > @rem Synchronizes date & time on Workstation to Server date & time
    > > @net time \\pfserv /set /yes >nul
    > > @Rem --------End-------Setup Drives

    >
    > You don't actually say so but I assume that the batch
    > file you're executing is the domain logon script.
    >
    > If so then you need to be aware that Windows 98
    > machines map drive z: to \\YourServer\netlogon during
    > the logon phase. This means that drive Z: is in use. If
    > you make your own connection then you're pulling the
    > rug away from your logon script!
    >
    > Also: Why the many @ in your batch file? They don't
    > exactly improve legibility, and are totally unnecessary.
    > Just start your batch file with @echo off.



    You assume correctly, thank you.

+ Reply to Thread