Net use and Windows 98

Posted on 2006-03-28
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?
Question by:MyPantsAreOnFire
    1 Comment
    LVL 5

    Accepted 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

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now