batch
-
-
I have a batch file where I am put a file into ftp site. The problem is that my file name are changing every day. How do I supply this file into batch file? Or is any other way to do this? open ftp.site user test pass test lcd C:\ cd .. put test.txt bye
There are a couple of possible solutions: 1. Create a simple program that creates a fresh FTP script each day. Example BAT file:
@echo off echo open ftp.site > myftpscript.txt echo user test >> myftpscript.txt echo _etc_ >> myftpscript.txt echo put %%1 >> myftpscript.txt echo bye >> myftpscript.txt ftp -n -s:myftpscript.txt
2. Use "mput *.txt" instead of "put test.txt" to transfer all matching files from your source directory. Hope this helps. Andy PS: This was probably the wrong forum to post this question to. :)