View Single Post
Old 05-14-2008, 02:05 PM  
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