In the first part of my program, I am passing a SHORT directory name as a literal because it never changes and enclosing the second directory in quote marks because the path and filename have spaces in them. THis works in this part of the program.
Code: Select all
unpacker.s = curdir + "\extract.exe" ; This is C:\iCat\extract.exe
params.s = " /Y /E /L C:\iCat2\ " + Chr(34) + diskfile.s + Chr(34) + " content.ini"
If RunProgram(unpacker.s, params.s, "", 1 | 2) 0
EndIf
Code: Select all
params.s = " /Y /E /L " + Chr(34) + curdir.s + "\View " + diskfile.s + Chr(34) + " " + "*.*" ; Make unpack String
If RunProgram("extract.exe", params.s, "", 1 | 2) 0 : EndIf
Code: Select all
params.s = " /Y /E /L " + Chr(34) + curdir.s + "\View " + chr(34) + " " + chr(34) + diskfile.s + Chr(34) + " " + "*.*"
When I type out entire command line in a console, complete with the literal quote marks, it works so I know it's correct. Just can't get RunProgram to pass it through properly
We are Dyslexic of Borg, prepare to have your ass laminated!
