running a command line program.

Just starting out? Need help? Post your questions and find answers here.
julesd
User
User
Posts: 23
Joined: Fri May 24, 2013 1:39 am

running a command line program.

Post 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?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: running a command line program.

Post 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)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
julesd
User
User
Posts: 23
Joined: Fri May 24, 2013 1:39 am

Re: running a command line program.

Post by julesd »

Thank you for info, I figured it out that same night as posting.
Post Reply