automation and scripting
I am trying to automate winscp. I am able to verify manually in DOS that the commands work. but as a batch file or from the scheduler I get left at the
active session: [1] mharper@192.168.166.29
winscp>
At the winscp prompt I can manually get my files but not able to automate that part of the process.
Also I am not able to get the log to create.
C:\WinSCP.exe /log /console /wait /open mharper@192.168.166.29 /get test c:\test_bat
As a batch file it seems that the wait is needed to get the login to work but from the scheduler it runs ok with out the wait.
What I am trying to do is get files from a remote server and completely automate the process on an hourly basis. I have tried many variations nothing seems to work.
all my commands work from the Command line but fail after logging into the server.
Mark :( [/b]
active session: [1] mharper@192.168.166.29
winscp>
At the winscp prompt I can manually get my files but not able to automate that part of the process.
Also I am not able to get the log to create.
C:\WinSCP.exe /log /console /wait /open mharper@192.168.166.29 /get test c:\test_bat
As a batch file it seems that the wait is needed to get the login to work but from the scheduler it runs ok with out the wait.
What I am trying to do is get files from a remote server and completely automate the process on an hourly basis. I have tried many variations nothing seems to work.
all my commands work from the Command line but fail after logging into the server.
Mark :( [/b]