Computing.Net > Forums > Windows 95/98 > Batch File To Determine Exact OS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File To Determine Exact OS

Reply to Message Icon

Name: anoopmitra
Date: October 3, 2003 at 09:30:40 Pacific
OS: WinXP
CPU/Ram: P2 350 128
Comment:

Hi,

I need to write a batch file which will be able to run a .exe after determining the OS. Meaning I want to input lines so that the batch can check which OS and run the subsequent exe file. Please urgent help needed.

Anoop



Sponsored Link
Ads by Google

Response Number 1
Name: Grasshopper
Date: October 3, 2003 at 13:54:05 Pacific
Reply:

Try the programming forum to the left of this page.


0

Response Number 2
Name: Nathan
Date: October 4, 2003 at 17:42:46 Pacific
Reply:

If I were you I would post it in the dos forum. anyways the answer...

if '%os%'=='(name os here)' goto os
goto end
:os
start blahblahblah.exe
:end

just use something like this. remember that win xp returns "windows_NT"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Win 98 Installation winipcfg fatal error



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Batch File To Determine Exact OS

Batch file to check os www.computing.net/answers/windows-95/batch-file-to-check-os/73326.html

BATCH FILE TO LAUNCH DIAL-UP CONNECTION www.computing.net/answers/windows-95/batch-file-to-launch-dialup-connection/102177.html

batch file to clean system www.computing.net/answers/windows-95/batch-file-to-clean-system/133777.html