03-15-2005, 11:48 PM
In Freebasic is there ayway for me to call a program from another progam kind of like automation or something?
Automation or something like it
|
03-15-2005, 11:48 PM
In Freebasic is there ayway for me to call a program from another progam kind of like automation or something?
03-16-2005, 12:16 AM
shell ?
03-16-2005, 12:25 AM
I don't know what you mean but what I'm looking if for one FB program to call another FB program.
03-16-2005, 12:58 AM
ya use shell i.e shell "FB_program2.exe"
03-16-2005, 01:18 AM
Use exec( exename as string, cmdline as string ) as integer.
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php
03-16-2005, 12:31 PM
Sorry, I don't understand could you give me an example.
03-16-2005, 03:22 PM
In the first FreeBASIC program, put this:
Code: exec "SecondFreeBasicProgram.exe", "" ' Might need an '$include
03-16-2005, 08:26 PM
Quote:In the first FreeBASIC program, put this: V1ctor said: "Use exec( exename as string, cmdline as string ) as integer." As it has a return type it is a function not a sub. Can functions be called like this?
03-16-2005, 09:30 PM
Quote:As it has a return type it is a function not a sub. Can functions be called like this?In PowerBASIC yes, I thought it was ok in FreeBASIC also. Just tested it and FB doesn't complain about it. |
« Next Oldest | Next Newest »
|