|
|||
|
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 |
|
|||
|
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); |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|