Execute a programm with arguments?
BlitzMax Forums/BlitzMax Beginners Area/Execute a programm with arguments?
| ||
hello! yes, the title sais it all. is it possible to run an executable with arguments...for example "server.exe 2 127.0.0.1".... the openurl command does not work when arguments are enabled..it has to be a system-independent solution...i think it might work with freeprocess, but i did not find any useful examples, rather than documentation :-\... thank you! |
| ||
Execute a programm with arguments? Global AppArgs$[]="bbAppArgs" Description: Arguments passed to the application at startup Information The AppArgs global array contains the command line parameters sent to an application when it was started. The first element of AppArgs always contains the name of the application. However, the format of the name may change depending on how the application was launched. Use AppDir or AppFile for consistent information about the applications name or directory. So I would guess err... ;) |
| ||
oh no ;) i think these are the arguments that are passed to the application (in my case: the server). but i want to execute a program with arguments (in my case: the client starts the server with arguments). |
| ||
Doesn't openurl open the web browser? |
| ||
no openurl opens an URL (default web browser), EXE or folder (default explorer). give it a try: OpenURL("C:\Windows\Notepad.exe") |
| ||
There is as well system_ and pub.freeprocess which can be used :) |
| ||
are there any documentations out there? |
| ||
On what? The module above is documented system_ is theoretically an internal command but does the same as execfile in blitz3d and blitzplus if you need docs |
| ||
uh, sorry, but where is freeprocess documentated? in blitzmax, under pub.mod/freeprocess.mod/ there i can find "doc" "freeprocess.bmx" and "freeprocess.c" but when i double click on "doc" nothing happens :-\. |
| ||
Have a look here I think this is a sample for is need for: http://www.blitzmax.com/Community/posts.php?topic=68847#769849 |
| ||
thank you :) but i think it might be quite useful, especially for new users, if there are any docs out there...also for third party modules....i know that third p. mods might have change to the next sync, but... :-\ |