Any ideas on why this may be greatly appreciated...
Code: Select all
@echo OFF
REM INSTRUCTIONS
REM 1. Set the ftpascii value to a temp file name (used to store ftp commands to be run at the end of the script)
REM 2. Set destinationDir to the directory you want to change to once you connect to the ftp server
REM 3. Replace ftp.server.com with your ftp server
REM 4. Replace username with your username
REM 5. Replace password with your password
REM 6. Replace the 'commandhere' with the appropriate ftp command (make as many lines as you need)
@echo
set ftpascii="ftpascii.txt"
set destinationDir=/install_main/
set "newFolder=%DATE%"
REM Build the ftp script.
REM We don't leave a space between the value & the > symbol because that space would be sent to the file
echo open dev1.eshipmanager.com> %ftpascii%
echo dev_coldfusion>> %ftpascii%
echo c0ldfus10n>> %ftpascii%
echo cd %destinationDir%>> %ftpascii%
echo mkdir %newFolder%>> %ftpascii%
echo quit>> %ftpascii%
REM -----------------------------------
ftp -s:%ftpascii%