SFTP transfer

Advertisement

nisha111
Joined:
Posts:
3

SFTP transfer

Hi all,
I just want to send some file to one SFTP server.
Is possible to send some fileto SFTP server using windows batch file?.
because i have to scheduled in my PC.

Can someone point me in the right direction.

***Can any one send me a rough script for this.***


Thanks..

Reply with quote

Advertisement

nisha111
Joined:
Posts:
3

SFTP transfer

i gone through F.A.Q..
i made one script for this.But its not working.
my user name is user1 and password pass1
url:xxx.xxx.xxx.xxx
port:1111.
my local directory is c:/test
I have to send all data from my local directory to sftp server.
in a server i can access only one folder named DATA.
Can any one send me a rough script for this.

Thanks

nisha

Reply with quote

nisha111
Joined:
Posts:
3

SFTP

I am new for this SFTP transfer.
I dont know which type of server they are using and all..
i just know only i can get permission for only one folder.
is it possible to send data using this winscp
Can any one help me regarding this...

Thanks
nisha

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: SFTP transfer

nisha111 wrote:

i gone through F.A.Q..
i made one script for this.But its not working.
What is not working?

Reply with quote

JRB_BMB
Joined:
Posts:
24
Location:
Midlands, UK

nisha,

Make a saved session to the ftp.
Open that session by its name in the script
set it to transfer all files in your local folder after ensuring your remote folder is set to the folder you can only access.
The examples in the FAQS and guides explain all of the above but you do need to read it carefully!!

look at the command line FAQs and simply call winSCP.com with the scripting parameters in a bat file. (if you don't know how to create the bat file and call the exe use google!)

Call this via windows scheduler.

Hope that gives you some idea of what to do. I'd rather not give you a step-by-step so you know what it's doing so if it breaks you can fix it!
Good luck
JB

Reply with quote

Advertisement

You can post new topics in this forum