"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:
40,476
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.

Reply with quote

Petros

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

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

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

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

Reply with quote

Advertisement

You can post new topics in this forum