How to start another process from my app
Publicado: Vie Abr 27, 2007 4:25 pm
Hi Ignazio,
I would like to start another app from my app, waiting for finish and continue the work in
my app. I tried the Process Class, but no succes. The command line is here long enough:
"C:Program FilesVemaVemaStartVema.exe" /App=DBV /Idnfile=D:EKOSDATAAGIMuct.idn
/Role=Geza /Password=welle /DBVCommand="editor 15 zoznam"
cCommand := '"C:Program FilesVemaVemaStartVema.exe" '+ '/App=DBV ' + ;
'/Idnfile=' +cPath + 'uct.idn' + ;
' /Role=' + oIni:GetEntry("Vema","Uzivatel") + ;
' /Password=' + oIni:GetEntry("Vema","Heslo") + ;
' /DBVCommand="editor 15 zoznam" '
oProces := Tprocess():New()
oProces:cName := cCommand
oProces:lWait := .T.
oProces:Run()
The process doesn't starts. From the command line the application starts correctly with
this command.
If the cCommand := '"C:Program FilesVemaVemaStartVema.exe" ', the process starts. It
seems, the Process class can't handle the parameters, but I need them.
Gejza Horvath
I would like to start another app from my app, waiting for finish and continue the work in
my app. I tried the Process Class, but no succes. The command line is here long enough:
"C:Program FilesVemaVemaStartVema.exe" /App=DBV /Idnfile=D:EKOSDATAAGIMuct.idn
/Role=Geza /Password=welle /DBVCommand="editor 15 zoznam"
cCommand := '"C:Program FilesVemaVemaStartVema.exe" '+ '/App=DBV ' + ;
'/Idnfile=' +cPath + 'uct.idn' + ;
' /Role=' + oIni:GetEntry("Vema","Uzivatel") + ;
' /Password=' + oIni:GetEntry("Vema","Heslo") + ;
' /DBVCommand="editor 15 zoznam" '
oProces := Tprocess():New()
oProces:cName := cCommand
oProces:lWait := .T.
oProces:Run()
The process doesn't starts. From the command line the application starts correctly with
this command.
If the cCommand := '"C:Program FilesVemaVemaStartVema.exe" ', the process starts. It
seems, the Process class can't handle the parameters, but I need them.
Gejza Horvath