Why is there a difference between any of these HDD serials when using a different expression with the same result?
Attachment 11172
Printable View
Why is there a difference between any of these HDD serials when using a different expression with the same result?
Attachment 11172
Hi ratty:
In String 9: you had Appdrive$ encompassed in "" quotation marks.
Also Appdrive$ only returns Drive letter + Colon (eg. C:, E: Not C:\, E:\)
If you add in Appdrive$+"\" then you should get the same.
Eg this expression should return the drives serial number?:
Str$(Get Volume Serial Number( "Advanced Volume Info", Appdrive$+"\"))
the same as
Str$(Get Volume Serial Number( "Advanced Volume Info", "C:\"))
Thats if the app is running from the C drive.
Very clear now. Thanks!