Can anyone help me with a small scripting problem or point me to a forum/board that would be able to help me?
I wrote a small script in a .txt file that I execute via scheduled tasks to a .bat file. One script goes out to a FTP site and pulls files to my local directory, the other pushes my files out to various FTP sites. I have everything working properly (authentication, script, etc.) except when I say *.txt or *.csv to pull or push all .txt/.csv files only the first one is moved not all like I would assume that *.xxx would do. When I use *.* the same thing happens - only the first file as listed in the directory moves, ntot everything.
What I have:
As I said - this works... but I have been testing with three files in the FTP_TEST_FOLDER directory (AAA.txt, BBB.txt & CCC.txt) and only the AAA.txt file moves with "put *.txt" or "put *.*".
Any suggestions - or referrals to other forums/boards that talk about this stuff would be much appreciated.
Thx!
I wrote a small script in a .txt file that I execute via scheduled tasks to a .bat file. One script goes out to a FTP site and pulls files to my local directory, the other pushes my files out to various FTP sites. I have everything working properly (authentication, script, etc.) except when I say *.txt or *.csv to pull or push all .txt/.csv files only the first one is moved not all like I would assume that *.xxx would do. When I use *.* the same thing happens - only the first file as listed in the directory moves, ntot everything.
What I have:
script_PUSH.txt file CODE
userID
userPW
bin
cd /d D:\FTP_TEST_FOLDER
put *.TXT
bye
script batch_PUSH.bat file CODE
ftp -s:script_PUSH.txt 127.0.0.1
As I said - this works... but I have been testing with three files in the FTP_TEST_FOLDER directory (AAA.txt, BBB.txt & CCC.txt) and only the AAA.txt file moves with "put *.txt" or "put *.*".
Any suggestions - or referrals to other forums/boards that talk about this stuff would be much appreciated.
Thx!