Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

General batch file/login script question

Featured Replies

So I am using a login script to map drives and set a time server, but sometimes it is beginning commands before finishing the previous one, and the drives don't properly map.

Is there a way to pause the script/slow it down so that commands will finish?

I do not want to use the PAUSE command because it requires input from the user...

EDIT: Here is what I have, tried putting the time server command at the end to give it a short slowdown...

@echo off

net use /delete U: /yes

net use /delete W: /yes

net use U: \\SERVER\users\%UserName%

net use W: \\SERVER\public

NET TIME \\SERVER /SET /YES

Edited by Cyrius

First of all, if you wish to add a pause you could use the ping command, alternatively I posted a method of adding a delay without using the ping command around 5½ years ago.

However for your needs, you could just try the Start command with the Wait switch:

...
START /WAIT net use /delete U: /yes

START /WAIT net use /delete W: /yes

START /WAIT net use U: \\SERVER\users\%UserName%

START /WAIT net use W: \\SERVER\public

NET TIME ...

Usually, it isn't the login script being too fast but the computer boot which allow the user to open the session before all network layers are up.

  • Author

I will try the START /wait command.

allen2, it also happens when I manually run the batch, that is why I figured its flying thru too quickly.

  • Author

Yzöwl: It appears that this worked. Thanks!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.