Topic ""Once finished" Options from the command-line"

Author Message
Petros
[View user's profile]

Joined: 2010-01-17
Posts: 2
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Just shutdown the machine after the script finishes. You can use shutdown.exe, which is part of Windows.
_________________
Martin Prikryl
Petros
[View user's profile]

Joined: 2010-01-17
Posts: 2
prikryl 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 ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Just run the winscp.exe (or .com) from .bat file and follow that by shutdown.exe.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License