Question : Net use and Windows 98

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?

Answer : Net use and Windows 98


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
Random Solutions  
 
programming4us programming4us