I need a bat file to move folder with all files and sub folder to a specific place in another server thru ftp
I have something like this
Code: Select all
@echo off
echo user colcy> ftpcmd.dat
echo 123456>> ftpcmd.dat
echo cd c:/files/upload/corc/>>ftpcmd.dat
echo bin>> ftpcmd.dat
echo put %1>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat ftp.server.net
del ftpcmd.dat
Do you think this will work? i cant test it right now so i would like to know if this is the right way or if theres a better way to do this?
One other question is there any way to lock a bat file and hide the password when running it?
thanks for all