|
-
Help with getting windows explorer to open
First of all, yes, I read the "please read this before posting" and I have tried exactly what it says and gone through other post and tried to figure it out also. Ok now for the problem. I am creating a application that auto runs when the CD is put in. That is working great no problems at all. I would love to have a button that when you click on it, it opens windows explorer to a certain folder. When I try the code posted which is:
drv = _url.substr(8,1);
getURL(drv + ":");
Firefox tries to open up the folder and displays it as folder only in a web browser as html. I think there is a way of doing it because I've seen other flash apps do it before. Any help would be greatly appreciated.
Last edited by pitchinnate; 12-01-2006 at 11:33 AM.
Reason: typo
-
Lifetime Friend of Site Staff
As long as you don't specify a folder, the getURL code I posted will open the root folder on your CD using Windows explorer and not the browser.
The only way I know to open a folder is to use a BAT file like this...
Code:
start \folder1\folder2
You will have to put the BAT file in the fscommand folder and use fscommand("exec", "filename.bat") to launch it. You will need one BAT file for each folder you want to open.
You might want to check out www.northcode.com/misc/proxy.zip for a FREE utility I wrote that will let you run BAT files from Flash and avoid the ugly DOS box. There's documentation in the ZIP file, and there was a big discussion about it (and some other utilities I wrote) in http://www.flashkit.com/board/showth...hreadid=519274 in the Standalone and Applications forum.
-
Works
Thanks a ton, worked no problem figured there was a way with the .bat but didn't know the script line. Thanks for the quick reply.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|