Wednesday, October 08, 2008 at 11:58 PMDid you know that on Windows you can extract a file that's packaged within your Desktop gadget? The following code extracts a file (called
sample.xmlin this example) to the temporary folder.
var tempFile = gadget.storage.extract("sample.xml"); // extract the fileAll temporary files created by
debug.trace(tempFile); // tempFile contains the path of the file
gadget.storage.extractare cleaned up automatically when the gadget is closed.
Note: Only on Windows do Desktop gadgets have access to the file system.