Opened 20 years ago
Last modified 20 years ago
#1475 closed Patch
New cmdline args so it doesn't hang
Reported by: | elsapo | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | Other |
Keywords: | Cc: | elsapo, Tim Kosse | |
Component version: | Operating system type: | ||
Operating system version: |
Description
Added three new command line arguments:
-close
close main dialog (as soon as transfer completes)
-noclose
do not close main dialog (default)
- overwrite overwrite existing files without prompt
The "-close" is so commandline invocation doesn't leave
filezilla.exe running forever, especially if run from a
batch file not in the interactive desktop (where noone
will ever see it).
The "-noclose" is just something you can add to the end
of a command line when debugging, to cancel an earlier
"-close" on the command line (or getting added
elsewhere by a variable).
The "-overwrite" is to avoid the dialog hanging at the
prompt for overwrite/nooverwrite -- this avoids having
to set a choice in the user profile which would lock in
the user and every script invocation run under that
user account -- that is, this allows making the choice
relevant for the particular command line invocation.
Attachments (1)
Change History (5)
by , 20 years ago
Attachment: | filezilla_cmdline_close.zip added |
---|
comment:1 by , 20 years ago
I've attached my original & modified MainFrm.cpp, so you can
either diff them visually, or generate a patch with whatever
context settings you like. Let me know if you would like
another format instead.
comment:2 by , 20 years ago
Go here
http://www.geocities.com/fzperry/1193050/patch_1193050.htm
for a binary exe version (along with source).
(Its too large to upload here.)
comment:3 by , 20 years ago
I'm not sure that IsQueueEmpty is the right method for my
test (when it is ok to close the dialog).
I really need to know if there are any active items left in
the queue, discounting any errors hanging out in the list
view (which is what IsQueueEmpty looks at).
comment:4 by , 20 years ago
Thanks, your patch has been applied.
A fixed version will be available in the next few days.
56Kb zip of the original & modified MainFrm.cpp