It may be possible, (not sure though) using Windows scripting engine, see following links for information
http://www.mvps.org/vbnet/
http://www.mvps.org/vbnet/
Main Topics
Browse All TopicsHi there I am looking for a way in VB6 to get the user's os based on an IP
eg.
2 text boxes and a command button
1) text1 enter in the ip
2) Click the command button
3) The os appears in text2
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
It may be possible, (not sure though) using Windows scripting engine, see following links for information
http://www.mvps.org/vbnet/
http://www.mvps.org/vbnet/
You might be thinking that based on IP addresses, webhosters are able to find out what browsers have visited. That isn't true. IP addresses are simply lookup addresses that're universally the same in Linux, Unix, Macintosh,... any computers out there.
However, most websites could determine what browser you are using via sending a cookie to your browser. It could detect what plugins you've installed, etc.
Are you looking for the client O/S, or the server O/S?
The client O/S can be retrieved by checking Ver such as:
Shell(Environ(Comspec) & "/c ver > C:\ThisVersion.txt")
Then open the file ThisVersion.txt to read the O/S version.
If you are trying to do this from a server, the client machine will usually get a message box asking if it's okay to allow this process to access the machine.
--
To see if a server is running Unix or Windows, you could try sending a query and switching case. Since Unix is case-sensitive, switching case will usually cause the command to fail whereas in Windows it usually will succeed on both queries.
Assuming that you have write permissions on the client, your server app could build a DOS batch file to perform the statement I proposed. The you can read that textfile.
You can also try using Environ("OS") but I think that returns blank for Win95/98/ME and "Win_NT" for NT4, 2000 and XP. Maybe that's enough for you?
Business Accounts
Answer for Membership
by: GeniusMasterPosted on 2003-09-16 at 07:32:16ID: 9370790
not possible as far as i know. sorry