PDA

View Full Version : Need help with on transfer complete


Joker
12-13-2004, 04:53 PM
I would like flashfxp to run a bat file when the transfer of 1 folder completes (not whole queue complete).

Is there anyway to do this?

Shark
12-13-2004, 07:48 PM
Maybe this should be in suggestions ?

I'll double check, but I don't think this is a current feature.

Gioggiolo
12-14-2004, 05:54 PM
Have You Tried this?

Added program execution after transfer complete.
To use this functionality you must add the following section to the FlashFXP.ini
[run]
app=<full\path\to\exe>
param=<any params you need to pass, use the %f macro to pass the filename>
show=1
show application window has two values 0=hidden 1=visible

Simple Example
[run]
app="c:\vscan.exe"
param="/scan %f"
show=0

Joker
12-15-2004, 05:16 AM
Gioggiolo

I havent tried that but that would only work with queue complete.
Not when one folder completes.

What i am doing is this, i have a bat file that runs winrar and unrar the files inside the folder.

But I always queue like 4-5folders and each of them has 2 subdirs where the rarfiles are.
So when one subdir has been downloaded completely i want the batfile to load and unrar it.


If this isnt possible yet, can someone move this thread to suggestion please?

NathanO
12-15-2004, 10:39 AM
You may be able to use the [run] app setting in FlashFXP.ini, to run the .bat after each successful file download.

You could arrange the queue so that the .rar file (or .001, or part01.rar etc) is the last file in a folder (this is usually the case anyway for .rar - but make sure for the other types), and edit the .bat so that if the extension is equal to .rar or .001 etc (the last file downloaded in the folder after you have arranged the queue), the extractor does it's business.

If the file doesn't match (.r01, .002, part02.rar), the extractor is not loaded.

Assuming all files download with no errors, this may work (in theory).

You could even modify the priority list so you won't need to manually adjust the queue.

Gioggiolo
12-15-2004, 03:25 PM
1) FlashFXP.ini
[run]
app="hidden.exe"
param="go.bat"


2) FlashFXP.exe .... -savequeue"End.fqf"

3) go.bat
@echo off
IF EXIST End.fqf (
start Command or CALL File.BAT
del /q End.fqf
)

MxxCon
12-15-2004, 06:01 PM
Gioggiolo, what would be the point of your go.bat?

if you are trying to find out when queue is complete you can use another undocumented trick;)
sound events accept .bat files, so you can run it on queue completion

Gioggiolo
12-16-2004, 05:04 PM
Originally posted by MxxCon
sound events accept .bat files, so you can run it on queue completion
It's very interesting... :eek:

Tnx :p