Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
To mimic a bat-file and gain more control
#1
I would like to mimic a bat-file in a free standing QM.exe as it allows extended control

The basic idea is to call QM.exe with parameters and make QM.exe start one thing after the other
in sequence

QM.exe start c: cd\Program Files (x86)\Internet Explorer iexplore.exe cd\Program Files (x86)\Windows NT\Accessories wordpad.exe

The blue text is one single line.

How can QuickMacro start up two different programs with the same parameter info that a bat file can handle

The corresponding bat file QM.bat is simple :
%1 %2 %3 %4 %5 %6 %7
#2
Function ExecCL
Code:
Copy      Help
;Executes QM macro text specified in command line, for example in Command Prompt (cmd.exe).

;Use this prefix to the macro text: qmcl.exe MS "ExecCL" C
;For new lines use " ; ".

;EXAMPLE (in cmd.exe)
;qmcl.exe MS "ExecCL" C run "c:" ; run "$Program Files$\Internet Explorer\iexplore.exe" ; run "$Program Files$\Windows NT\Accessories\wordpad.exe"


str s=_command
s.findreplace(" ; " "[]")
s-"spe -1[]"
;out s
wait 0 H RunTextAsFunction(s)


Forum Jump:


Users browsing this thread: 1 Guest(s)