Go Back   FlashFXP Forums > >

Custom Commands Download, share, or get help creating your own.

Closed Thread
 
Thread Tools Display Modes
Old 02-06-2015, 03:30 PM   #1
jebjeb
Junior Member
 
Join Date: Feb 2015
Posts: 1
Default command line for stfp?

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
jebjeb is offline  
Old 02-14-2015, 01:47 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Quote:
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:
Quote:
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?
bigstar is offline  
Closed Thread

Tags
download, sftp, command, folder, remotepath=processed/., localpath=., line, dflashfxpflashfxp.exe, detected, protical, connection, adding, assumed, type, change, repeat, login, situation, stfp, 2-6, times, logs, files, delete, day

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:13 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)