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.
Comments
viewtopic.php?f=32&t=37399&hilit=shell+RTC
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n