Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-26-2008, 04:27 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Extract file from my Resources, save to user PC?

Say I have a file in my resources. What if I want to save that file to the user's computer? Is that possible using SWFKit? Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-29-2008, 07:43 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

What's your resources? Resouces of an windows execuatable file or something else? Please post a sample at here, thank you. If you mean resources of an exe file, it's possible.
Reply With Quote
  #3 (permalink)  
Old 12-29-2008, 11:59 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default

Yes, I mean the Resources of a SWFKit exe.
Reply With Quote
  #4 (permalink)  
Old 12-29-2008, 01:05 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Quote:
Originally Posted by motionman95 View Post
Yes, I mean the Resources of a SWFKit exe.
But there is no file in the resource of an swfkit exe. The files are packed at the end of the exe.
Reply With Quote
  #5 (permalink)  
Old 12-30-2008, 04:09 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default

Why won't this code work?

var extractedFile = new File(Global.getAdditionalFile("7za.exe"));
Global.trace(extractedFile.path);

This part always returns false.

Global.trace(extractedFile.copy("C:\\"));
Reply With Quote
  #6 (permalink)  
Old 12-30-2008, 07:50 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Are you sure the "7za.exe" is in the "Resources" list of swfkit? The code seems to have no problem.
Reply With Quote
  #7 (permalink)  
Old 12-30-2008, 10:12 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default

I'm sure, SWFKit.

SWFKit, as far as detecting standby, would this help?

kirupaBlog - If it isn’t broken, take it apart and fix it! » Blog Archive » Invoking P/Invoke - Communicate with Win32

Get the monitor status : Visual C# General : Visual C# : MSDN Forums

Mobility: Make Your WPF Apps Power-Aware

Last edited by motionman95; 12-30-2008 at 11:57 AM.
Reply With Quote
  #8 (permalink)  
Old 01-03-2009, 03:17 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Quote:
Originally Posted by motionman95 View Post
Why won't this code work?

var extractedFile = new File(Global.getAdditionalFile("7za.exe"));
Global.trace(extractedFile.path);

This part always returns false.

Global.trace(extractedFile.copy("C:\\"));
We've tested similar code with a sample, and we're sure that it works well. The "getAdditionalFile" is a fundamental method of SWFKit. If it couldn't work, no swfkit exe would work Please recheck your files, thank you.

About standing by, it's really too difficult so we don't know how to make it work. Really sorry for that.
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 05:31 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.