execsystem
Posted: October 17th, 2011, 6:00 pm
I'm not sure to post in the right section, sorry if not.
I seek some help with the execsystem function.
I'm trying to automize a few things, one of four works, not the others.
I'm more unix oriented, I have very low skills with windows system.
If not too complicated, I would really appreciate some help, once again, to resolve this
I would like to set up something like that:
when the operator press 3, an index.html file starts
when the operator press 4, the BatchHTML.pff starts
when the operator press 5, the Tables application starts
------------------------------------
...
elseif $ = 2 then
Execsystem("c:..\Tools\Locate_Incomplete_Cases.exe"); {<----This one works fine}
reenter;
elseif $ = 3 then
execsystem("c:..\Docs\index.html"); {<----This one doesn't work}
execsystem(maketext('%s\Internet Explorer\iexplore.exe /c:..\Docs\index.html',pathname(ProgramFiles64))); {<----I tried also this but no success}
reenter;
elseif $ = 4 then
execpff("c:..\Batch\\BatchHTML.pff"); {<----Here the batch application starts but the HTML file is not found}
reenter;
elseif $ = 5 then
Execsystem("c:..\\Tables.xtb"); {<----There is no pff file for the tables so execpff cannot be used?}
reenter;
I seek some help with the execsystem function.
I'm trying to automize a few things, one of four works, not the others.
I'm more unix oriented, I have very low skills with windows system.
If not too complicated, I would really appreciate some help, once again, to resolve this
I would like to set up something like that:
when the operator press 3, an index.html file starts
when the operator press 4, the BatchHTML.pff starts
when the operator press 5, the Tables application starts
------------------------------------
...
elseif $ = 2 then
Execsystem("c:..\Tools\Locate_Incomplete_Cases.exe"); {<----This one works fine}
reenter;
elseif $ = 3 then
execsystem("c:..\Docs\index.html"); {<----This one doesn't work}
execsystem(maketext('%s\Internet Explorer\iexplore.exe /c:..\Docs\index.html',pathname(ProgramFiles64))); {<----I tried also this but no success}
reenter;
elseif $ = 4 then
execpff("c:..\Batch\\BatchHTML.pff"); {<----Here the batch application starts but the HTML file is not found}
reenter;
elseif $ = 5 then
Execsystem("c:..\\Tables.xtb"); {<----There is no pff file for the tables so execpff cannot be used?}
reenter;