Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Can I use secure copy "SCP" in batch file?  (Read 1994 times)

0 Members and 1 Guest are viewing this topic.

ankush

    Topic Starter


    Rookie

    Can I use secure copy "SCP" in batch file?
    « on: May 22, 2008, 09:32:36 AM »
    Hi,

    I am using copy and move commands in my batch file, the question is can i use 'SCP' secure copy in batch file, if yes, then please suggest me how? that would be great.

    thank you

    Dias de verano

    • Guest
    Re: Can I use secure copy "SCP" in batch file?
    « Reply #1 on: May 22, 2008, 11:11:01 AM »
    Just get a win32 scp implementation and place the regular commands in the batch file

    Copying file to host:

    scp SourceFile.ext user@host:directory/TargetFile.ext

    Copying file from host:

    scp user@host:folder/SourceFile.ext TargetFile.ext
    « Last Edit: May 22, 2008, 11:27:07 AM by Dias de verano »