• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2393
  • Last Modified:

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?
1 Solution

You can use th  %OS% variable to determine the operating system-

>>  when you run the net use command in win 9x, the default behavior is to create a non-persistant share

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now