I have a .bat file that calls a script file to log in to a server and upload a file to my pub account. When I run the .bat file it just executes the command over and over and never executes the script file. Does anyone know why? Am I missing something in my script or .bat file commands below?
my .bat file contains this>ftp -s:script.txt
my script file contains this:
open myserver.com
username
password
put W:\UPLOAD\doc.txt
bye
exit
Thanks,
Mike
Looping doesn't seem reminiscent of the batch file or the script you have listed here. I sounds like it may be due to some logic in your package. Any chance this is happening in your package?|||It works now.
|||Mike,
I have the same problem, can you post the solution?
Thanks.
Sebastian.
|||Instead of using the batch file, I used a ftp script and called it using the Execute Process Task Editor:
Executable: C:\WINDOWS\system32\ftp.exe
Arguments: -s:"C:\Documents and Settings\me\Desktop\SQL 2005 DMS project-Prod\Download E-Apps\ftpscript.txt"
the ftpscript.txt file contains the following:
open hostname
me
password
Ascii
put filepath\name
bye
exit
No comments:
Post a Comment