We help IT Professionals succeed at work.

Net use and Windows 98

MyPantsAreOnFire
on
Medium Priority
2,517 Views
Last Modified: 2008-03-10
I have a domain username that is used across several stations by several users. Every station is win2k or winxp except for one, which is win98. Anytime this user logs in, a login script is run that runs this:

Net use k: \\servername\sharename /persistent:no

Now this works well and fine on all of the machines except for the windows 98 machine, because the windows 98 version of net use does not support the /presistent switch.

This one is actually a two parter.

First, if I use the net use command in a win9x environment, is it treated as temporary or persistent connection?

Second, is there anyway to set up a batch file so that It checks which version of windows is currently running, and then save that as a DOS variable?
Comment
Watch Question

Commented:

You can use th  %OS% variable to determine the operating system-
http://www.mike-tech.com/article.php?gif=winnt4&article=121

>>  when you run the net use command in win 9x, the default behavior is to create a non-persistant share
http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/AdminTips/Logon/WindowsNTLoginScriptTricksandTips.html

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.