.bat to detect operating system

Discussion in 'Scripting' started by David Lewis, Sep 3, 2008.

  1. David Lewis

    David Lewis Guest

    We are currently using .bat files for our login scripts
    Yaya I know so 1998
    Anyways until we can switch to .vbs or anything else
    I need to put some code in the .bat login script to not run if it's a
    windows 2003 server
    The IT guys still need login scripts but I don't want them running on the
    David Lewis, Sep 3, 2008
    1. Advertisements

  2. Parse the output of the command: VER.
    Michael Bednarek, Sep 4, 2008
    1. Advertisements

  3. David Lewis

    Dave R. Guest

    This is covered extensively in Timo Salmi's most excelent CMD.EXE
    scripting FAQ: See http://www.netikka.net/tsneti/info/tscmd004.htm

    Hope that helps!

    Dave R., Sep 4, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.