Options

callSYSTEM command

Andreas_LundinAndreas_Lundin Member Posts: 91
edited 2000-02-29 in Navision DOS
Hi all!

I'm normally doing development in the Navision Financials, but I have a question on the Navision 3.56 regarding the callSYSTEM command. How is it used? Is it equal to the SHELL command in Navision Financials?

My problem is the parameters used when using the function. I have a 32-bit DOS application, which is invoked by the callSYSTEM command. with the parameters:

callSYSTEM('command.com','/C','convert.exe f1.txt f2.txt');

When running this piece of code, the convert.exe is executed correctly, but is followed by temporary error message. When pressing OK, the control is returned to Navision. Can this error message be avoided by using the function like this
?:

callSYSTEM('convert.exe f1.txt f2.txt');

Any comments is welcome <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" />

Regards
Andreas

Comments

  • Options
    LudoLudo Member Posts: 14
    Hi Andreas,

    Have you tried following :

    callSYSTEM('command.com','/C','convert.exe f1.txt f2.txt > null');

    Does it work ?
    It 's the old trick ...

    Ludo
Sign In or Register to comment.