What replaces SHELL in the role tailored client?

josephdeweyjosephdewey Member Posts: 87
I'm wondering if someone could point me in the right direction. I know that a lot of the system commands like SHELL, ENVIRON, CONTEXTURL, and probably other commands are no longer supported in the RoleTailored Client (RTC).

I've searched for an easy walk through to try to find what I'm supposed to replace them with, but I haven't been able to find anything.

For an example question, how would I replace the following SHELL command, that calls an FTP script? But, I'm really hoping there's already a resource out there that I can study for a couple hours and learn all this on my own.

Here's the Navision command:
SHELL('C:\Navision\ftp.cmd','01 ftp_file.txt password');
And here's the script of ftp.cmd:
set FName=%2
set LogFile=C:\navision\log.log
set Source=Navision\FTP
set Destination=C:\navision\data
set CommandFile=%Destination%\FTP_COMMANDS_%1.ftp
set TheTime=%time:~0,2%%time:~3,2%%time:~6,2%
if %TheTime:~0,2% LSS 10 set TheTime=0%TheTime:~1,5%
set NameCHG=%date:~10,4%%date:~4,2%%date:~7,2%_%TheTime%
echo user DOM\user   %3                      >%CommandFile%
echo lcd %Destination%                        >>%CommandFile%
echo ascii                                    >>%CommandFile%
echo cd  %Source%                             >>%CommandFile%
echo get %Fname%                              >>%CommandFile%
echo rename %Fname%  %Fname%%NameCHG%.old     >>%CommandFile%
echo quit                                     >>%CommandFile%
echo *F*T*P* %date% %time% - FTP Process for: %1 >>%LogFile%
ftp -n -s:%CommandFile% ftp.company.com   >>%LogFile%
type nul >%CommandFile%
erase %CommandFile%
And, I currently don't have a clue where to start looking for how to go about replacing migrating this function from the Classic Client to the RoleTailored Client.
Joseph Dewey
Microsoft Dynamics NAV User

Comments

Sign In or Register to comment.