PDA

View Full Version : command line for stfp?


jebjeb
02-06-2015, 03:30 PM
Got a situation where I need to login to an sftp 2-6 times a day, download whats in the folder x, then delete the files from the folder. and then repeat.
I have tried D:\FlashFXP\FlashFXP.exe -download sftp://Test:123@127.0.0.1:22 -localpath="labs:\*.*" -remotepath="processed/*.*"
And it logs in and does nothing

I tried
D:\FlashFXP\FlashFXP.exe -get sftp://Test:123@127.0.0.1:22 -localpath="G:\labs\*.*" -remotepath="Processed/*.*"


and it says SFTP protical detected, please change the connection type to SFTP
How do I do that via command line?
I assumed adding the sftp would do it but seems not

bigstar
02-14-2015, 01:47 PM
D:\FlashFXP\FlashFXP.exe -download sftp://Test:123@127.0.0.1:22 -localpath="labs:\*.*" -remotepath="processed/*.*"-localpath and -remotepath must be defined as the exact absolute path and do not support any wildcard file masks

So you'd use something like this:
D:\FlashFXP\FlashFXP.exe -download sftp://Test:123@127.0.0.1:22 -localpath="d:\incoming\" -remotepath="/processed"

But a better and perhaps more ideal solution would be to create a queue file and then simply pass the queue file name via the command line.

Basically you'd do the following.

1. Change the local browser to the target folder.
2. Connect to the server in the remote browser and queue the folder for download.
3. Save the queue.

Now to perform this operation you would simply run FlashFXP.exe <path\to\queue\file.fqf>

You mentioned that you'd also like to delete the files, do you want to do this on the local machine or from the remote server?

Also what specific version/build of FlashFXP are you using?