| DosTips.com ... for WinXP |
|
Last update: Jan 13, 2008 |
Description: | Embed FTP script into a batch script. Add this line at the beginning of the FTP script: @ftp -i -s:"%~f0"&GOTO:EOFThe "FTP -s:ftpscript.txt" option executes a FTP script wheres "%~f0" resolved to the name of the running batch file.
"GOTO:EOF" ends the batch script and makes sure the FTP script doesn`t run as part of the batch.
| ||
Script: | |||
Script Output: |
|