Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Volume Info or Serial # with Win98

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
I am trying to get the serial number (or other unique info) from a network drive on a Win98 box. There are several threads that talk about using the GetVolumeInformation in WIN32API to obtain disk information. I have used this API, but it doesn't work on Win98 and network drives. I have tried most of the suggestions to get something to work with Win98, but no luck so far. Does anybody have a work around for these old machines and network drives?

Auguy
 
How about this one?
Z being the drive letter of a mapped drive on my system. Just change accordingly.

Code:
Creat Cursor temp  (COMPTE    C(50))
Run VOL Z: > Z:\VOL.MRG
Append From Z:\VOL.MRG Sdf
Select temp
Browse



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Thanks, but this also doesn't work with my Win98 and a network drive. I only get the label. I was using the serial number of the drive where my application is installed for security purposes, but I cannot get Win98 machines to provide the drive serial number when that drive is a network drive.

Auguy
 
Are you trying to write code to restrict your program to work on only certain computers or servers? If so, you may not be able to account for all variations between the various Windows OS, etc. Since Windows 98 (and Windows NT and Millennium) are no longer supported, with no more security fixes, they are now a risk to use in a business environment. It may be wise simply not to allow the program to run on Windows 98. Really, when you think about it, it's not a horrendous limitation. Windows 98 is over 8 years old, sad but true. If a company is going to pay you decent money to develop software, they should be well aware of the security issues and risks if continuing to use computers running Windows 98. Time to clean data off the computer and let someone take it home for the kids to pound on. Or scavenge it for parts.

Be aware that every time a hard drive gets replaced or a computer is replaced or added, then you'll get a phone call to generate a new key...

FAQ184-1263
Thread184-520931
Thread184-749787
Thread184-756938 ***
Thread184-951493
Thread184-1034497

dbMark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top