Run a batch file from Navision

Hi,

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

SHELL(‘C:\xxxx\send.bat’)

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]

[:D]

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

thanks again [:)]