Congax
Fledgling Freddie
- Joined
- Aug 18, 2004
- Messages
- 3,231
Quick & simple: how to make a batch file in windows that does automatic login & upload to an FTP server? So say for exemple, I click the batch file, it logs me in on server and uploads some folder and files in it (ofc, name of the folder etc are in batch file)
I got it covered in Linux but can't do it in Windows. Well, the logon works in Windows, but that's about it. :/
I give great rep to whoever can help whatsoever! ;>
I got it covered in Linux but can't do it in Windows. Well, the logon works in Windows, but that's about it. :/
Code:
@echo off
SET TMP=tmpScript.bat
SET URL=zesib1
SET USR=attuned
SET PAS=XXXXX
echo open %URL%>%TMP%
echo %USR%>>%TMP%
echo %PAS%>>%TMP%
echo put %1>>%TMP%
echo quit>>%TMP%
ftp -s:%TMP%
rm %TMP%
I give great rep to whoever can help whatsoever! ;>