Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2003, 12:35 PM
Junior Member
 
Join Date: Feb 2003
Posts: 4
Default Passing values

I am using the great object the SWFKit built for passing variables to the .exe

However, I am being frustrated by my own stupidity. Can't for the life of me work out how to reliably strip the variable file out... Can someone help me before I pull my hair out???

Example string:

"C:\Documents and Settings\Administrator\Desktop\NEIL\Projector\NEIL .exe" /file="C:\Program Files\Java Web Start\resources\copyright.jpg"

Thanks for any help.

Neil
Reply With Quote
  #2 (permalink)  
Old 02-09-2003, 09:55 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Passing values

Please have a try...
Code:
var cmdline = '"C:\\Documents and Settings\\Administrator\\Desktop\\NEIL\\Projector\\NEIL.exe" /file="C:\\Program Files\\Java Web Start\\resources\\copyright.jpg"';
var r = /file="(.*)"/;

var filename = r.exec(cmdline)[1];
trace(filename);
;D ;D
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 03:29 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.