SFTP transfer file and move file to folder

Posted by molecule on Stack Overflow See other posts from Stack Overflow or by molecule
Published on 2010-06-08T02:58:37Z Indexed on 2010/06/08 3:02 UTC
Read the original article Hit count: 293

Filed under:
|

Hi all,

This is my first post so please excuse my ignorance. I am using a vbscript to zip all .csv type files in a particular folder. After some google searches, I have found a workable vbscript to do this and have enabled a scheduled task to automate this.

What I need to do next is to transfer the zip file via sftp and then "move" that zip file into another folder. I believe the former can be achieved using pscp.exe via command line but can someone show me how to do the latter?

Basically the zipping will be done twice a day and so it will have a timestamp similar to yyyymmdd0900.zip (for 9am schedule) and yyyymmdd1800.zip (for 6pm schedule). After the transfer, I want to move (not copy) the zip file generated into another folder.

Any pointers would be greatly appreciated. Thank you all in advance.

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about sftp