Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

NAV 2013 R2 - Shell is not working while calling from C/AL code but working fine with Command Prompt

$
0
0
Hi,

We are facing issue while connecting FTP client (using Core FTP application).

using the below code:

l_txtCommand := rec."FTP Client Path" +
' -site ' + rec."Site Name" +
' -s -O -d ' + rec."Sales Directory"+ '*.*'+
' -p ' + rec."Sales Local Dir" +' -delsrc'+
' -Log ' + rec."FTP Log File Path";
WshShell.Shell(l_txtCommand, WshExec.Hide, FALSE, 0);

defined the below variables:

WshShell : Microsoft.VisualBasic.Interaction.'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
WshExec: Microsoft.VisualBasic.AppWinStyle.'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

but if we type the above text with variable path on command prompt then it connects the FTP without any any problem.

Unable to figure out if any windows component is missing or any NAV component missing. It is happening from one particular application server, which was rebuild recently on Windows 2008 R2 standard. The above code is running on other servers but unable to run on single server which was rebuilt recently.

Please advice with your valuable comments.

Thanks
Rati Kant

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>