And you can detect what kind of network profile the computer is currently running with this:

Code:
        set CurrentProfileType=No Network Profile Type Found
        for /f %%a in ('netsh advfirewall show currentprofile ^| find "Profile Settings:"') do set CurrentProfileType=%%a
        echo   This computer's Network Profile Type is: %CurrentProfileType%
_________________________
Tony Fabris