Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-22-2007, 05:36 AM
Junior Member
 
Join Date: Oct 2007
Posts: 3
Default Diskinfo not returning anything

Hi,

I am about to purchase swfkit pro3.2 but the problem is that the diskinfo function does not return anything in vista OS whereas it is working absolutely fine in XP.

Also in vista it worked fine twice in 5 attempts. What is the problem. Is there any tweak to overcome this.


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);
}
}





for this code i get undefined in trace for all parameteres in vista where as it works fine in XP.
Kindly help me resolve this issue. I will order swfkit right away
Reply With Quote
  #2 (permalink)  
Old 10-22-2007, 10:55 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Diskinfo not returning anything

Thank you very much. We will solve the problem a.s.a.p.
Reply With Quote
  #3 (permalink)  
Old 10-22-2007, 11:50 AM
Junior Member
 
Join Date: Oct 2007
Posts: 3
Default Re: Diskinfo not returning anything

I have completed my application and got struk because of this bug. Is there any workaround available to get the hard disk serial number or to make the code work. Please advice.
Reply With Quote
  #4 (permalink)  
Old 01-08-2009, 12:13 AM
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default

Hello, I'm new here and I had the same problem, but found another way using "Drive.drive":

var HDserial = Drive.drives[0].serialNumber;
ini.writeString("SYSINFO", "Hard Disk Serial", HDserial);

or

ini.writeString("SYSINFO", "Hard Disk Serial", Drive.drives[0].serialNumber);

Works both in Vista.


In the SWFkit helpfile you can find this:

var d = Drive.drives;
for (i = 0; i < d.length; i++)
{
trace(d[i].driveLetter, ":\t", d[i].driveType);
trace("\t", d[i].fileSystem);
trace("\t", d[i].isReady);
trace("\t", d[i].rootFolder);
trace("\t", d[i].serialNumber);
trace("\t", d[i].totalSize);
trace("\t", d[i].volumeName);
}
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 02:52 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.