ftp" Rem Notepad "%temp%\%~n0.ftp" REM - Execute Ftp Script, collect File Names Set "FileList=" For /F "Delims=" %%A In ( '"Ftp -v -i -s:" %temp% \ %~n0. txt Set FindStrArgs =/E /C: ".mp3" REM - Extract Ftp Script to create List of Files Set "FtpCommand=ls" Call : extractFileSection "" "-" > " %temp% \ %~n0. PAUSE EXIT ) REM - : RUNSCRIPT REM Run script to download the new files CD /d %~dp0 ECHO Running FTP Script GOTO : RUNSCRIPT ) else ( ECHO LOCAL DIRECTORY IS Empty IF %size% gtr 0 ( REM Creating FTP script ECHO Creating FTP Script to download remote filesįOR /F "tokens=*" %%G IN (local.txt ) DO ECHO put " %% G" >ftpscript.txt REM Sets current directory CD /d %~dp0 REM - FOR /f %%i IN ( "local.txt" ) DO SET size = %%~zi REM - REM Checking Local Directory ECHO Checking Local DirectoryÄIR /b /s *.pgp %LOCALFILEDIR% >local.txt ![]() REM Your FTP directory that you would like to download from (Example: public_html/downloads) SET FTPDIR =FTP DIRECTORY HERE REM Your FTP credentials SET FTPUSERNAME =USERNAME CLS REM -CUSTOM CONFIGURATIONS- REM This is your local directory that you use to store your files (Example: "C:\Users\johndoe\Documents") SET LOCALFILEDIR =LOCAL DIRECTORY HERE
0 Comments
Leave a Reply. |