Problem Executing Automation Windows Script Host Object Mode

JohnieGJohnieG Member Posts: 56
Hi to all,
I have come upon the following problem. I want to execute the following command:

grconv -S UTF-8 -t 737 <C:\INPUT.TXT>C:\OUTPUT.TXT

When i type the command through command window it runs fine. But when i execute the command through a Navision Automation 'Windows Script Host Object Model'.WshShell it malfunctions. ](*,)
Bellow I have an example:

TmpText --> Text --> 1024
lautWSHOM --> Automation --> 'Windows Script Host Object Model'.WshShell

TmpText :='grconv -S UTF-8 -t 737 <C:\INPUT.TXT>C:\OUTPUT.TXT';
CREATE(lautWSHOM);
lautWSHOM.Run(TmpText);
SLEEP(5000);
CLEAR(lautWSHOM);

I suppose that the cause of the problem are the <> characters which by the way are essential. Is there any way that I can parse the statement without loosing the <> information in the string?

Thank you in advance...
Always Look On The Bright Side Of Life...
Sign In or Register to comment.