Execute Bat file from WinSCP

Advertisement

m.mk53
Joined:
Posts:
3
Location:
Egypt

Execute Bat file from WinSCP

Dear Team,

please I need your support. I want to download some files from a server and compress these files then upload it to another server
so, 1- i create a WinSCP script for download files
and 2- bat windows for compress and on the same time upload to another server

So, my question here, is there any method to execute bat Windows file inside WinSCP? To make full process at once.

Best Regards.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
38,408
Location:
Prague, Czechia

Re: Execute Bat file from WinSCP

No. But you can do it the other way around. Run WinSCP from the batch file:
  1. Download
  2. Compress
  3. Upload

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
38,408
Location:
Prague, Czechia

Re: Execute Bat file from WinSCP

I do not understand the question.
I assume you know what commands to use to compress a file and what commands to use to run WinSCP. Don't you?
Roughly like this:
winscp.com /script=download.txt ...
zip ...
winscp.com /script=upload.txt ...

Reply with quote

Advertisement

You can post new topics in this forum