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?
running a command line program.
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: running a command line program.
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:
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.
If it sounds simple, you have not grasped the complexity.
Re: running a command line program.
Thank you for info, I figured it out that same night as posting.