Last active
August 29, 2015 14:06
-
-
Save tuksik/464d18700dcc891bb0fb to your computer and use it in GitHub Desktop.
How to Automate FTP Uploads from the Windows Command Line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem http://www.howtogeek.com/howto/windows/how-to-automate-ftp-uploads-from-the-windows-command-line/ | |
@echo off | |
echo user MyUserName > ftpcmd.dat | |
echo MyPassword >> ftpcmd.dat | |
echo quote pasv >> ftpcmd.dat | |
echo bin >> ftpcmd.dat | |
echo put %1 >> ftpcmd.dat | |
echo quit >> ftpcmd.dat | |
ftp -n -s:ftpcmd.dat SERVERNAME.COM | |
del ftpcmd.dat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment