Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Any news on the "running shell command from /script" subject ?

zzgael wrote:

I'm making a small software to manage and run WinSCP scripts directly from right click in explorer directories.
I would love to see the possibility of running shell commands from the script. This would make scripts way simpler, easily shareable, and we wouldn't need an additional .bat file.
Is there something planned for this feature ? Much thanks !

Use the call command.
https://winscp.net/eng/docs/scriptcommand_call
Though it has some limitations.
zzgael

Any news on the "running shell command from /script" subject ?

Hello,

Thank you for WinSCP.

I'm making a small software to manage and run WinSCP scripts directly from right click in explorer directories.
I would love to see the possibility of running shell commands from the script. This would make scripts way simpler, easily shareable, and we wouldn't need an additional .bat file.
Is there something planned for this feature ? Much thanks !
martin

Re: local shell execution from /script

Austin wrote:

hmmm, its great that you can schedule in windows. The problem I am facing is I am transferring files using WINSCP (batch) by windows scheduler followed by another task which runs my "program.exe" the only thing is I don't know of an option that ensures scheduled tasks are complete or I need to find a way to make sure WINSCP has finished the transfer of the desired file's before "program.exe" is executed. :?:

You can put both your tasks to single .bat file and schedule that.
Austin

Re: local shell execution from /script

martin wrote:

This issue has been added to
tracker.


First post, while I am at it, what a great program.

hmmm, its great that you can schedule in windows. The problem I am facing is I am transferring files using WINSCP (batch) by windows scheduler followed by another task which runs my "program.exe" the only thing is I don't know of an option that ensures scheduled tasks are complete or I need to find a way to make sure WINSCP has finished the transfer of the desired file's before "program.exe" is executed. :?:

If anyone has suggestions on a better free task scheduler, or another solution I am all ears.

Thanks Austin
martin

Re: local shell execution from /script

This issue has been added to tracker.
martin

Re: local shell execution from /script

This is not supported yet.
mjraley

local shell execution from /script

I am looking at integrating winscp into existing batch jobs.
In windows default FTP client and the moveit freely FTPS client the ftp macro interprets ! to mean start a command shell and run some local command such as "!myprogram.exe" inside the session.

Argueably I can do these before and after the session, but

The GUI mode allows custom commands to execute locally or remotely
but it's not apparent how to or if I can start a local command shell from script. :?