Another Way to use "Command Shell" on NAV
Using > 'Windows Script Host Object Model'.WshShell
VARIABILI
Name DataType Subtype
Laut Automation 'Windows Script Host Object Model'.WshShell
IintWindowStyle Integer
IblnWaitForEndOfCommand Boolean
OintReturnValue Integer
CODICE
IF CREATE(Laut) THEN BEGIN
IintWindowStyle :=0;
IblnWaitForEndOfCommand := TRUE;
Command := ‘Riga di comando’;
OintReturnValue := Laut.Run(Command,IintWindowStyle,IblnWaitForEndOfCommand);
CLEAR(Laut);
END;