Results 1 to 8 of 8
  1. #1
    4 Star Lounger
    Join Date
    Jun 2003
    Location
    Utah, USA
    Posts
    405
    Thanks
    35
    Thanked 5 Times in 5 Posts

    Connect at Logon

    I am getting the message "Could not reconnect all network drives" at log on.

    This is on a home network from a Vista machine that is trying to connect to a shared folder on an XP machine.

    If anything, this message just seem premature - my network eventually connects.

    I am using a BAT file in my startup to connect my network with a statement like this in it:

    net use computnameIPC$ /"user:user name"

    How should I address this problem?

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Connect at Logon

    To prevent this message at startup, include the line
    <code>net use /persistent:NO</code>
    at the beginning of your BAT file

    This tells Windows that you don't want the same disks mapped next time it restarts.

    StuartR

  3. #3
    4 Star Lounger
    Join Date
    Jun 2003
    Location
    Utah, USA
    Posts
    405
    Thanks
    35
    Thanked 5 Times in 5 Posts

    Re: Connect at Logon

    But I do want those disks to show up as mapped drives in "Computer" every time the user logs on.

    Will this interfere with that? Or is that mapping done later?

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Connect at Logon

    My advice would be to map the drives with a .BAT file that runs when the user logs on. You just set them not to be permanent so that the system doesn't try to map them too early in the login sequence.

    StuartR

  5. #5
    4 Star Lounger
    Join Date
    Jun 2003
    Location
    Utah, USA
    Posts
    405
    Thanks
    35
    Thanked 5 Times in 5 Posts

    Re: Connect at Logon

    Edited by HansV to provide link to post. I only had to change the () in (Post: 750,053) to square brackets [ ]

    OK.

    In thread <post:=750,053>post 750,053</post:> you sent a BAT file containing the following lines:

    net use /persistent:NO
    Call OneDisk F: ServerShare1 /User:me
    Net Time Server /set /yes
    Net Use

    1) The first line is the command mentioned in your previous reply.
    2) What is "onedisk"? Is this another batch program (that you didn't include)?
    3) Is the "net time" statement a good thing to include for a home network
    4) Does "net use" work without additional parameters here because of stuff that is in the file onedisk?

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Connect at Logon

    In the post you refer to (<post#=750,444>post 750,444</post#> ) there are three BAT files

    NoShares.BAT just disconnects all shares I use this occasionally if I am going to be away from my home network.
    OneShare.BAT connects a single share. It is called with parameters
    HomeShares.BAT maps all the shares by repeatedly calling OneShare.BAT with the correct parameters

    I have just edited HomeShares.BAT because it had an error, it tried to call OneDisk.BAT instead of OneShare.BAT, this was just carelessness on my part. Thanks for letting me know.

    HomeShares.BAT ends with the two lines
    <code>Net Use
    Pause</code>

    The first of these commands (<code>Net Use</code> without additional parameters) creates a list of all shares. The second line (<code>Pause</code> puts up a prompt saying "Press any key to continue . . ." and waits for you to type something, to give you a chance to see the list of shares.

    Replying to your last point. The <code>Net Time</code> command synchronises the time on my PC to the time on my home server. It isn't essential but it can help to keep file timestamps correct.

    StuartR

  7. #7
    4 Star Lounger
    Join Date
    Jun 2003
    Location
    Utah, USA
    Posts
    405
    Thanks
    35
    Thanked 5 Times in 5 Posts

    Re: Connect at Logon

    This makes a lot more sense now.

    Will work on this.

  8. #8
    4 Star Lounger
    Join Date
    Jun 2003
    Location
    Utah, USA
    Posts
    405
    Thanks
    35
    Thanked 5 Times in 5 Posts

    Re: Connect at Logon

    Just added a follow-up question about the BAT files ** on the other thread ** (that seemed like a better place for it).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •