Showing results for 
Search instead for 
Did you mean: 

how to make it work???


how to make it work???

@echo off

set /P my_folder="Please enter folder to zip and FTP: "

if exist %my_folder% goto do_zfile
goto error


cd %my_folder%

rem .: if your date has '/' in the date, they need to be stripped out.
for /f "delims='/'" %%i in ('%date%') do
set my_date=%%i-%%j-%%k

zip_program /switches *.*

set /P my_loc="Please enter FTP site: "
set /P my_id="Please enter your ID: "
set /P my_pass="Please enter your Password: "

echo open %my_loc% > ftp_conn.txt
echo user %my_id% %my_pass%>> ftp_conn.txt
echo binary >> ftp_conn.txt
echo hash >> ftp_conn.txt
echo put >> ftp_conn.txt
echo close >> ftp_conn.txt
echo quit >> ftp_conn.txt

ftp -s:ftp_conn.txt

del ftp_conn.txt

goto done

echo Folder was not found.


------ how to configure that script to make it work with SmartFTP( C:\ProgramFiles....\SmartFTP.exe) and Winzip???-------
-----what are the switches??
Jon Finley
Honored Contributor

Re: how to make it work???

You can use "SmartFTP.exe /?" for help.

Winzip info here:

"Do or do not. There is no try!" - Yoda