Run a batch file from Navision


If any body can help me … I will be very gratefull

I have a batch file named send.bat on C:\xxxx\send.bat

Can I run it from navision ? if yes what code i have to write …

if yes how i can code ?.. IF send.bat is exited or found

Thank you


Yes, you can execute this via C/AL Code!

The easiest way is to use the SHELL command, e.g. SHELL(‘C:\xxxx\send.bat’)

Alternatively, you could use the “Windows Script Host” methods “Exec” or “Run” via Automation Server.

Hey Nuno, you were fast [H]


thanks for Nino and jorg … you were both of you faster than i expected

thanks again [:)]