Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automation or something like it
#1
In Freebasic is there ayway for me to call a program from another progam kind of like automation or something?
Reply
#2
shell ?
Reply
#3
I don't know what you mean but what I'm looking if for one FB program to call another FB program.
Reply
#4
ya use shell i.e shell "FB_program2.exe"
Reply
#5
Use exec( exename as string, cmdline as string ) as integer.
Reply
#6
Sorry, I don't understand could you give me an example.
Reply
#7
In the first FreeBASIC program, put this:
Code:
exec "SecondFreeBasicProgram.exe", ""  ' Might need an '$include
Reply
#8
Quote:In the first FreeBASIC program, put this:
Code:
exec "SecondFreeBasicProgram.exe", ""  ' Might need an '$include

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?
Reply
#9
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)