For instance I have the following situation: for a program, let's call it "statistic.exe" some initial data have to be produced before calling it and after the execution the data is converted. So I did a purebasic program "mystarter.exe" which should do the following:
Code: Select all
; Init
; [:]
; Call Programm
; WinExec_("c:\progra~1\intern~1\server\statistik.exe "+GetCommandLine(),WM_HIDE)
; Data-Convertion
; [:]
I have to pass through parameters like (quotes are important):
-a 2 "x" Time_Axis "y" X_Axis
so how to create the correct commandline easily?
A lot of words for the easy wish: please change ProgramParameter() to have the following behaviour:
ProgramParameter() next parameter
ProgramParameter(0) complete (unmodified) parameter string
ProgramParameter(n) nth parameter (1..CountProgramParameters())
So what would change for actual sources?
ProgramParameter(n-1) will now be ProgramParameter(n)