Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OS check in a BAT
Message
Information générale
Forum:
Windows
Catégorie:
Configuration
Divers
Thread ID:
00875636
Message ID:
00875721
Vues:
17
>I know I should know this, but I've long forgotten. I have a new temporary BAT that checks for NT or XP OS to do installs via SMS. How does the DOS OS check code work? Something like this, in pseudocode:
>
>If OS = NT install this
>
>If OS = XP install that

I don't think there's anything that distinguishes the OS from a .BAT file level. All I see for OS under XP and W2K is Windows_NT.
Maybe you can do a VER > version.txt and somehow parse it? My .BAT skills are way rusty.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform