Is possible use batch Script to get OpenGL Version?
<p>i wanna know if possible, with a Batch Script or another Windows (XP , Seven, Eight, Ten) or Script compatible for get the current drivers OpenGL Version.</p>

<p>I wanna adapt part of my bash script to Windows :</p>

<pre><code>#!/bin/bash

# 
# Autor     :   Inukaze ( Venezuela )
# Site      :   http://inukaze.wordpress.com
# E-Mail    :   inukaze.otaku@gmail.com
# License   :   GPL 3
#
#

# Obtener la Architecture
Architecture=$(uname -m)
case "$Architecture" in
    x86)    Architecture="x32"                          ;;
    i?86)   Architecture="x32"                          ;;
    amd64)  Architecture="x64"                          ;;
    x86_64) Architecture="x64"                          ;;
    * ) echo "Your Architecture Detected $Architecture -&gt; Its not supported"    ;;
esac


# Detect OpenGL Version :
OpenGLV=$(glxinfo | grep "OpenGL version" | awk '{ print $4 }' | cut -c 5- | rev)

# Use the version of GzDoom according to the OpenGL version detected
case "$OpenGLV" in
1)
    echo
    echo "OpenGL 1 Detected"
    echo
    echo "Using GzDoom 1.8.6"
    Version=1.8.6
    if  [ "$Architecture" = "x32" ]; then
            LD_LIBRARY_PATH="Gnu/Linux/$Version/lib32"
            export LD_LIBRARY_PATH
            Engine="Gnu/Linux/$Version/gzdoom.$Architecture"
    elif    [ "$Architecture" = "x64" ]; then
            LD_LIBRARY_PATH="Gnu/Linux/$Version/lib64"
            export LD_LIBRARY_PATH
            Engine="Gnu/Linux/$Version/gzdoom.$Architecture"
    else
        echo "Your Architecture Detected $Architecture -&gt; Its not supported"
    fi
    ;;

2) 
    echo
    echo "OpenGL 2 Detected"
    echo
    echo "Using GzDoom GzDoom 1.9.1"
    Version=1.9.1
    if  [ "$Architecture" = "x32" ]; then
            LD_LIBRARY_PATH="Gnu/Linux/$Version/lib32"
            export LD_LIBRARY_PATH
            Engine="Gnu/Linux/$Version/gzdoom.$Architecture"
    elif    [ "$Architecture" = "x64" ]; then
            LD_LIBRARY_PATH="Gnu/Linux/$Version/lib64"
            export LD_LIBRARY_PATH
            Engine="Gnu/Linux/$Version/gzdoom.$Architecture"
    else
        echo "Your Architecture Detected $Architecture -&gt; Its not supported"
    fi
    ;;

3)  
    echo
    echo "OpenGL 3 Detected"
    echo
    echo "Using GzDoom GzDoom 2.1.1"
    Version=2.1.1
    if  [ "$Architecture" = "x32" ]; then
            LD_LIBRARY_PATH="Gnu/Linux/$Version/lib32"
            export LD_LIBRARY_PATH
            Engine="Gnu/Linux/$Version/gzdoom.$Architecture"
    elif    [ "$Architecture" = "x64" ]; then
            LD_LIBRARY_PATH="Gnu/Linux/$Version/lib64"
            export LD_LIBRARY_PATH
            Engine="Gnu/Linux/$Version/gzdoom.$Architecture"
    else
        echo "Your Architecture Detected $Architecture -&gt; Its not supported"
    fi
    ;;

*) 
    echo "OpenGL version not determined"
    ;;
esac

    export Architectures
    for Architectures in $Architecture; do
        test -x ./$Engine || continue
        exec ./$Engine "$@"
    done

echo "Could not start GzDoom" &gt;&amp;2
</code></pre>

<p>But i dont know a method for get OpenGL Version on Batch Script or another Script. or if someone know a simple command line tool for i get it and use in the new script i wanna adapt to windows compatible.</p>