Go Back   FlashFXP Forums > >

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

Closed Thread
 
Thread Tools Display Modes
Old 05-14-2008, 02:05 PM   #1
orange.x
Junior Member
 
Join Date: May 2008
Posts: 2
Default Right Click > Send To...

I'm having a little issue. I've searched the forum but didn't find the solution for my problem which is next:

I want to be able to upload files via the "Right Click > Send To.." menu.
I found one topic on the forum which gave me a possible solution ( the use of rcFTP ) but that program is not that clever...

I've been looking at the scripting possibilities and found the script or command to upload a file to a FlashFXP site via a batch file ( or the Windows Run window ).

The command looks like this:
FLASHFXP.EXE -upload Onderdegrond -localpath="c:\bla.txt" -remotepath="/domains/...../"
( Where the /...../ is the rest of the path )

When I run the batch file it opens FlashFXP, than connects to my FTP site, goes to the right directory and it gives me the next error:
[R] 227 Entering Passive Mode (ipaddress).
[R] Opening data connection IP: ip PORT: port
[R] STOR
[R] 500 'STOR' not understood

[R] Transfer Failed!
[R] TYPE A
[R] 200 Type set to A
[R] PASV
[R] 227 Entering Passive Mode (ipaddress).
[R] Opening data connection IP: ip PORT: port
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete.
[R] List Complete: 1 KB in 0,47 seconds (2,7 KB/s)
Transfer queue completed
1 File failed to transfer

If I upload in FlashFXP the same file ( in the FlashFXP client ) the log gives me the next lines:
[R] 227 Entering Passive Mode (ipaddress).
[R] Opening data connection IP: ip PORT: port
[R] STOR bla.txt
[R] 150 Opening ASCII mode data connection for bla.txt
[R] 226 Transfer complete.
Transferred: bla.txt 9 bytes in 0,14 seconds (0,1 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (ipaddress).
[R] Opening data connection IP: ip PORT: port
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete.
[R] List Complete: 1 KB in 0,44 seconds (3,1 KB/s)
Transfer queue completed
Transferred 1 file totaling 9 bytes in 1,08 second (0,1 KB/s)

The diffrence between the two commands is that in the second command, which was transferred with the client, has the filename behind the STOR commandline.

What is wrong about my script? Because I literly copied it from the FlashFXP Help.

Another question. What I want is that I can right click any file on my computer and send that file to the FTP site. So I have to give the batch file some sort of shortcut to the file that is selected, how can I do that? The -localpath="..." has to be filled in by the batchfile itself, is there some sort of shortcut or standard term for the file you actually selected?
orange.x is offline  
Old 05-15-2008, 04:22 AM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I suspect the problem is that you're not providing a filename in the -remotepath parameter

FLASHFXP.EXE -upload Onderdegrond -localpath="c:\bla.txt" -remotepath="/domains/bla.txt"
bigstar is offline  
Old 05-15-2008, 10:07 AM   #3
orange.x
Junior Member
 
Join Date: May 2008
Posts: 2
Default

That is a good possibility. I will try this as soon as I'm home from work.

Can you answer my second question also? I want tor un that command via a shortcut or command-prompt-sort-of-like thingy ( batch file ). The problem there is that in the commandline i need to enter those filenames I did right click on. You get it? Is there a command like "FILE" or "FILENAME" that I can use in my batch file?
orange.x is offline  
Closed Thread

Tags
file, flashfxp, ftp, upload, [r]

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 01:33 AM.

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