Vbscript detect vista


















Hi Praful, Thank you for your further clarification. Now I could clarify what "it" means in your question. If I don't misunderstand, I get that you want to detect OS in batch file. Batch file is provided in it. Referring to detection, as far as I know, in Vista,. NET 2. You had better use the registry keys for detection.

Any misunderstanding of your question , please tell me. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. I got some code that i need to extend to include detection of vista windows 7 etc and was wondering if anyone could give me some assistance. So basically this is just to filter out systems that aren't running one of the prescribed OS's, correct?

In this case, you just need to add the identifiers for Windows 7 and every other OS you want to detect as cases to your select statement. Specifically, you'll need to add a short variable for each string to be added, and then throw a case for each short variable into your select statement. I don't know what versions of Vista, 7, and you'll be using home, home premium, ultimate, standard, datacenter, etc.

You'll need to add additional lines like the ones above for each OS you need to detect. It is pretty straight forward to use. You can post now and register later.

If you have an account, sign in now to post with your account. Paste as plain text instead. Wow, you really researched this! It's still a bummer that vbscript can't do this without a call to whoami. Echo isElevated ;. Alexey Alexey 61 3 3 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.

Accept all cookies Customize settings.



0コメント

  • 1000 / 1000