Batch File .bat to copy file from File Sharing & FTP Hosting


  1. Posts : 1
    Windows 7 Pro 32 bit
       #1

    Batch File .bat to copy file from File Sharing & FTP Hosting


    Hi all,

    Any idea how to write Batch File .bat to copy file from File Sharing & FTP Hosting to local directory.

    Current the File Sharing & FTP Hosting is SMARTFILE.

    I don't want to use WINSCP as the connector.

    Thanks
      My Computer


  2. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #2

    Hi Chacha,

    Give this batch file a try. All text in red, you should adjust before running.

    Code:
    @echo off
    (
    	echo.Username
    	echo.Password
    	echo.lcd C:\Some\local\directory
    	echo.cd /Some/server/path
    	echo.binary
    	echo.get Some_file_to_download.txt
    	echo.bye
    ) > "%TEMP%\_%~n0.ftp"
    ftp -s:"%TEMP%\_%~n0.ftp" "12.34.56.78"
    del "%TEMP%\_%~n0.ftp"
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:43.
Find Us