I'm using action script 3.0 compiling the code to flash 10
how to get hard disk serial number with action script?
I want to get this info without any security requirement. Is there a way to do it?
I'm using action script 3.0 compiling the code to flash 10
how to get hard disk serial number with action script?
I want to get this info without any security requirement. Is there a way to do it?
You could get all the physical media for a device from a C# console application and output each physical medium and its properties as an xml. Then in an Air application using the
NativeApplication
API you can get said physical medium and its properties, namely the serial number for a hard disk drive. I made an example of this:GetPhysicalMedia.cs:
Main.as:
This is an example of the output you get for GetPhysicalMedia.exe:
There is no way to do that from FlashPlayer. You might ask for the user to type it manually the first time, use a
SharedObject
and never ask again.With AIR you can fork native OS process and communicate it to obtain HDD serial number:
Hope this helps.