Topic "Option Batch Question"

Author Message
brees
[View user's profile]

Joined: 2007-03-07
Posts: 4
Can you specify both
"option batch on"
and
"option batch continue"
in the same script file?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
You change the option value anytime. But you cannot have both options effective at the same time (it would make no sense anyway).
brees
[View user's profile]

Joined: 2007-03-07
Posts: 4
Thxs for the info. Maybe I'm misunderstanding of exactly what each option is doing but I think there should be a way to specify the following options if you are using a script file with the script switch:

1) This is a batch process (true or false)
AND
2) If I encounter an error during the batch process (ignore and continue OR abort)

seems like a logical request.

beacuse if you have automated the entire process and an error does occur while the winscp is running the script file, then the winscp does not exit like it should and the process continues to run in the background until you notice that you have 50 instances of winscp running in the task manager.

-obviously, having multiple instances of winscp running is a bad thing in a production environment.

if this is not possible to specify both batch and error options and my only choices are:
A) run as a batch
B) don't run as a batch
C) continue on error
d) abort on error

then maybe the program should be changed in a future version that give you the option
to:
option batch (on||off)
option onerror (continue||abort)

seems to make more since to me than the current methodology but then again maybe I'm not fully understanding the options even though I've read the documentation and FAQ.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Option "continue" means the same as "batch", just with different reaction to error. "Batch" aborts on error, while "continue" ignores errors. So I think that WinSCP gives you all the options.
_________________
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