Page 1 of 1
running a command line program.
Posted: Wed Oct 16, 2013 10:10 pm
by julesd
how do you execute a command line program properly.
There is the command ***.exe then some preferences.
Do I need to open the console first?
Re: running a command line program.
Posted: Wed Oct 16, 2013 10:24 pm
by IdeasVacuum
Are you referring to the use of RunProgram()? You don't have to open the console and indeed you can hide it.
It pretty much depends on the program you wish to run - it may or my not have arguments that can be appended for example.
Pseudo Code:
Code: Select all
sMyFolder.s = "C:\MyFolder"
sMyExeFullPath.s = "C:\Program Files\MyExe\MyExe.exe"
MyExeArgs.s = " /a /t"
SetCurrentDirectory(sMyFolder)
RunProgram(sMyExeFullPath, sMyExeArgs, sMyFolder, #PB_Program_Hide)
Re: running a command line program.
Posted: Fri Oct 18, 2013 5:52 pm
by julesd
Thank you for info, I figured it out that same night as posting.