Announcement

Collapse
No announcement yet.

Error level Windows 7 - Server 2003 DC

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error level Windows 7 - Server 2003 DC

    I have mix environment Windows 7 enterprise and Windows XP Pro. I was wondering what is Errorlevel for Windows 7. Here is my sample batch script.
    ================================================== =
    @echo off

    REM *** Check OS version ***
    osver -t
    IF errorlevel=2 GOTO :SERVER
    IF errorlevel=1 GOTO :MAP
    GOTO :EXIT

    :MAP
    echo Map network drive
    net use H: \\myserver /Persistent:NO

    :SERVER

    Exit

    :END
    ========================================

    Thanks for your help guys.
    You'll live and you'll learn - Good advice costs nothing but it feel good, you learn something.
Working...
X