Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2005, 08:06 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default DiskInfo() does not give any results

i have been trying to use this code in my script, but it does not give any results.

Code:
for (i = 0; i < 4; i++){

var di = new DiskInfo(i);

 if (di != null){
               trace(di.modelNumber);
               trace(di.serialNumber);
               trace(di.revisionNumber);
               trace(di.driveType);
               trace(di.bufferSize);
               trace(di.cylinders);
               trace(di.heads);
               trace(di.sectors);
        }
}
i also tried using
Code:
trace(DiskInfo.modelNumber);
trace(DiskInfo.serialNumber);
trace(DiskInfo.revisionNumber);
trace(DiskInfo.driveType);
trace(DiskInfo.bufferSize);
trace(DiskInfo.cylinders);
trace(DiskInfo.heads);
trace(DiskInfo.sectors);
it gives the following results:

0
0
0
0


i am using SWFKit Pro 2.2 r2 trial version
Reply With Quote
  #2 (permalink)  
Old 03-22-2005, 07:57 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:DiskInfo() does not give any results



can anybody guide me to correct it.

sometimes the above code gives results and sometimes it does not trace anything???????

Is there any other way to find the HardDisk Serial Number???

thanks in advance
Reply With Quote
  #3 (permalink)  
Old 03-25-2005, 11:04 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:DiskInfo() does not give any results

Code:
function getHDDSn()
{
for (var i = 0; i < 4; i++)
{
var di = new DiskInfo(i);
if (di.cylinders > 0)
{
return di.serialNumber;
}
}

return "";
}

trace(getHDDSn());
Reply With Quote
  #4 (permalink)  
Old 03-29-2005, 07:37 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:DiskInfo() does not give any results

??? ???

the above code gives the following result in the trace window

FSCommand("FFish_Run", "Initialize")
Warning: using undefined property "cylinders"
Warning: using undefined property "serialNumber"
undefined
Reply With Quote
  #5 (permalink)  
Old 04-04-2005, 04:13 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:DiskInfo() does not give any results

Please contact the live supporter, msn messenger: support@swfkit.com.
thank you.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.