"Once finished" Options from the command-line

Advertisement

Petros
Joined:
Posts:
2

"Once finished" Options from the command-line

Hallo everyone,

I use the command-line to synchronize two directories (eg winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults]).
Is there any way to set the "Once finished: shutdown" option, which is available in the graphical interface of the new WinSCP version, through the command-line ?

Using WinSCP 4.2.5 with Commander interface on Windows VISTA.

Many thanks in advance.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: "Once finished" Options from the command-line

Just shutdown the machine after the script finishes. You can use shutdown.exe, which is part of Windows.
_________________
Martin Prikryl

Reply with quote

Petros
Joined:
Posts:
2

Re: "Once finished" Options from the command-line

martin wrote:

Just shutdown the machine after the script finishes. You can use shutdown.exe, which is part of Windows.

And is there a way to automatically send the shutdown.exe command just after WinSCP has finished the synchronization of the directories ?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: "Once finished" Options from the command-line

Just run the winscp.exe (or .com) from .bat file and follow that by shutdown.exe.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum