|
-
I need to pass some arguments from the command line in dos to a .exe and was wondering how to do it.
I thought of another way around the problem (.bat file that changes the value of an .ini file) but I just wanna know if you can do it the other way.
cheers guys
aLaN

-
All statements must be expressions..
In Flash 4 or earlier it's
"some.exe" & Chr(9) & "/argument1" & Chr(9) & "/ect"
In Flash 5 it's
"some.exe" add Chr(9) add "/argument1" add Chr(9) add "/ect"
Keep in mind that slashes are different in Flash 5
-
I don't understand...
is this the DOS line command?

-
No it's the syntax for flash to be able to pass command line arguments the & Chr(9) & allow's a space to be processed on the commmand line
Using a expression and & Chr(9) & will allow spaces in Flash
-
Ok that's great but...
I want to be able to use the command line in dos to pass some parameters to a projector .exe file. that's what i am asking if it's possible...

-
And that's what I'm showing the example code in my first post does just that..
Replace the name some.exe with your executable names and replace the arguments with your executables arguments if you need further help with this subject I suggest you see my program (which uses command line parameters in Flash) and or search this board...
-
Lol.. Pure_Morning.. YES that is the DOS Prompt. I don't understand why he said no, but it is. You want to replace "some.exe" with the path to "command.com" and then add your command line switches, seperated by chr(9). Chr(9) is actually a TAB, but it acts as a space when processed. I suggest you add the command line switch "/c" before all other switches. That will close the DOS prompt box that pops up after it runs the commands you tell it. Much better than having the user do it him/herself. Oh and one more thing - download this example of a Windows "Run" box I made.. which uses the DOS Command Line to open any file that has a program associated with it on the user's computer (and is automatically opened by the program it is associated with). Let me know if you have any problems
-
The Supreme Shaman and Keeper of Polar Lights
-
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
|