FTP upload from list
Moderators: white, Hacker, petermad, Stefan2
FTP upload from list
1st - welcome me to the forum
Im new here but im not new to Total Commander(Windows Commander)
Here is my subject...
One thing i miss is the option to FTP upload from list
(like the FTP download from list, but reversed traffic)
here is an example of the ftplist.txt as it is today
ftp://user@ftpserver.net/Games/HL2/tunnels.avi -> C:\games\HL2\tunnels.avi
the upload file should look like this
C:\games\HL2\tunnels.avi -> ftp://user@ftpserver.net/Games/HL2/tunnels.avi
I havent seen it in earlier versions and i havent seen it in the latest either so
Is it possible or havent anybody thought of it ?
I did a search in the forum here but no hits came up related to this
// UndCon
Im new here but im not new to Total Commander(Windows Commander)
Here is my subject...
One thing i miss is the option to FTP upload from list
(like the FTP download from list, but reversed traffic)
here is an example of the ftplist.txt as it is today
ftp://user@ftpserver.net/Games/HL2/tunnels.avi -> C:\games\HL2\tunnels.avi
the upload file should look like this
C:\games\HL2\tunnels.avi -> ftp://user@ftpserver.net/Games/HL2/tunnels.avi
I havent seen it in earlier versions and i havent seen it in the latest either so
Is it possible or havent anybody thought of it ?
I did a search in the forum here but no hits came up related to this
// UndCon
- ghisler(Author)
- Site Admin
- Posts: 48107
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The correct syntax is:
put:C:\games\HL2\tunnels.avi -> ftp://user@ftpserver.net/Games/HL2/tunnels.avi
put:C:\games\HL2\tunnels.avi -> ftp://user@ftpserver.net/Games/HL2/tunnels.avi
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- sqa_wizard
- Power Member
- Posts: 3864
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Yes, if you create a file with entries according to the correct syntax:undcon wrote:is it possible with FTP upload from file ?
ghisler wrote:The correct syntax is:
put:C:\games\HL2\tunnels.avi -> ftp://user@ftpserver.net/Games/HL2/tunnels.avi
#5767 Personal license
Thx sga_wizard
so if i add PUT in front of everything in ftplist.txt it will upload the files OK
then i only need the Upload from file in the Net menu...
in totalcmd.inc i find:
cm_ftpdownloadlist=558;Download files in download list
566 is next free number and i added
cm_ftpuploadlist=566;Upload files in upload list
I added this line to WCMD_ENG.MNU
(under POPUP "&Net")
MENUITEM "FTP Upload From List", 566
But i get "Function not implemented" when i try to use my new Upload from list in Net menu
IF i use a "Put-modified" ftp_upload_list and the "Download from list" command in Net menu i get the error:
"Error Downloading File"
So i guess i didnt do everything i should and the "Put-modification" didnt work either
need more help plz
(a walkthru might do the trick, and/or a new cmd for future releases)
so if i add PUT in front of everything in ftplist.txt it will upload the files OK
then i only need the Upload from file in the Net menu...
in totalcmd.inc i find:
cm_ftpdownloadlist=558;Download files in download list
566 is next free number and i added
cm_ftpuploadlist=566;Upload files in upload list
I added this line to WCMD_ENG.MNU
(under POPUP "&Net")
MENUITEM "FTP Upload From List", 566
But i get "Function not implemented" when i try to use my new Upload from list in Net menu
IF i use a "Put-modified" ftp_upload_list and the "Download from list" command in Net menu i get the error:
"Error Downloading File"
So i guess i didnt do everything i should and the "Put-modification" didnt work either
need more help plz
(a walkthru might do the trick, and/or a new cmd for future releases)
- sqa_wizard
- Power Member
- Posts: 3864
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
You are kidding, right ?566 is next free number and i added
cm_ftpuploadlist=566;Upload files in upload list
You cannot add a new internal command to TC (that up to Christian)
All you can do is to use existing commands like:
MENUITEM "FTP Upload From List", 568
... with a "Put-modified" list.
#5767 Personal license
- ghisler(Author)
- Site Admin
- Posts: 48107
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
cm_ftpdownloadlist will not only download files, it will also upload files if you use the above syntax. It will even copy and move files, when you use prefix copy: and move: !
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
i cannot get the Put: command to work properly here...
the put file looks like this:
Put: C:\Temp\test.txt -> ftp://username@ftp.server.com/temp/test.txt
if i reverse this line like this it works to DownLoad (standard ftplist)
ftp://username@ftp.server.com/temp/test.txt -> C:\Temp\test.txt
what can be wrong ? i have tried lots of things here...
ill keep on trying tomorrow, need 2 sleep now
the put file looks like this:
Put: C:\Temp\test.txt -> ftp://username@ftp.server.com/temp/test.txt
if i reverse this line like this it works to DownLoad (standard ftplist)
ftp://username@ftp.server.com/temp/test.txt -> C:\Temp\test.txt
what can be wrong ? i have tried lots of things here...
ill keep on trying tomorrow, need 2 sleep now
[face=courier]On 06-12-2003 02:21:42 +0000 undcon wrote:
w> the put file looks like this:
u> Put: C:\Temp\test.txt ...
[^Y]
u> what can be wrong ?
Heh, it reminds me one anecdote...
u> i have tried lots of things here...
Have you tried NOT to put the space between "put:" and path?[/face]
w> the put file looks like this:
u> Put: C:\Temp\test.txt ...
[^Y]
u> what can be wrong ?
Heh, it reminds me one anecdote...
u> i have tried lots of things here...
Have you tried NOT to put the space between "put:" and path?[/face]
[face=courier]The Protoss do NOT run from their enemies.
It is here, that we shall make our stand.[/face]
It is here, that we shall make our stand.[/face]
Now this was funny
i was blinded by my own attempts and forgot to delete a space
now it works but with a minor glitch
all uploaded files gets the file-ending _
the used example above looks like this:
Put:C:\Temp\test.txt -> ftp://username@ftp.server.com/temp/test.txt
and the file that ends up on the server is named
test.txt_
a underscore is added to each file uploaded with this "Put" thingy
strange but it works...
i was blinded by my own attempts and forgot to delete a space
now it works but with a minor glitch
all uploaded files gets the file-ending _
the used example above looks like this:
Put:C:\Temp\test.txt -> ftp://username@ftp.server.com/temp/test.txt
and the file that ends up on the server is named
test.txt_
a underscore is added to each file uploaded with this "Put" thingy
strange but it works...
Hi, new to this, but have the same problem. Ok I made the list file according to your guidelines above, and click the FTP Download From List menu, enter the list file's name for the first question, BUT then it asks for "Target path" (as if I were downloading), but since I have already included the target path in the upload list file (...->ftp://user@...), what to enter here? Should I repeat it again?ghisler(Author) wrote:cm_ftpdownloadlist will not only download files, it will also upload files if you use the above syntax. It will even copy and move files, when you use prefix copy: and move: !
Tried to delete this field (making it empty) and also tried to enter the ftp server path again, it did not work either. Receive an "Error downloading file (nx)" message. How to handle this, please?
Cannot confirm this behaviour.
Created this FTP upload list:
Named it ftpupload.lst.
Selected Network => Download ftp files from list
In the upcoming dialogbox I entered the name of the list file, i.e. ftpupload.lst.
The only thing which I had to enter in another dialog box was the password for user "opera" on the ftp server.
No dialog box asking for a target path came up.
Tested this with several ftpuload.lst files.
So I assume something is wrong in your ftp upload list. Compare your syntax to the examples given above.
Don't hesitate to come back and ask if you keep on experiencing problems.
Karl
Created this FTP upload list:
Code: Select all
put:C:\Documents and Settings\user\Local Settings\Temp\datei1.txt -> ftp://opera@hpux/tmp/datei1.txt
put:C:\Documents and Settings\user\Local Settings\Temp\datei2.txt -> ftp://opera@hpux/tmp/datei2.txt
put:C:\Documents and Settings\user\Local Settings\Temp\datei3.txt -> ftp://opera@hpux/tmp/datei3.txt
Selected Network => Download ftp files from list
In the upcoming dialogbox I entered the name of the list file, i.e. ftpupload.lst.
The only thing which I had to enter in another dialog box was the password for user "opera" on the ftp server.
No dialog box asking for a target path came up.
Tested this with several ftpuload.lst files.
So I assume something is wrong in your ftp upload list. Compare your syntax to the examples given above.
Don't hesitate to come back and ask if you keep on experiencing problems.
Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
Hi Karl,
Oh, those Space-es again....
Ok, now it works, indeed, and thanks for your help, however let me have one more question. (maybe 2) It is a huge directory on the server with more than 200000 files already (!) where I need to upload even more. I can't even open this directory directly (from Windows at least) due to the number of files cousing timeout problem, that's why I wanted to copy the files this way, by an upload list, directly into the directory.
First I made a small upload list with only 3 files for testing, but after uploading the first file, the second does not start uploading, it seems TC waits for some "confirmation" or directory list or whatever before starting the second one. Can I turn it off somewhere in TC, so that it won't wait for anything just uploading all the files?
Cukorka
Oh, those Space-es again....
Ok, now it works, indeed, and thanks for your help, however let me have one more question. (maybe 2) It is a huge directory on the server with more than 200000 files already (!) where I need to upload even more. I can't even open this directory directly (from Windows at least) due to the number of files cousing timeout problem, that's why I wanted to copy the files this way, by an upload list, directly into the directory.
First I made a small upload list with only 3 files for testing, but after uploading the first file, the second does not start uploading, it seems TC waits for some "confirmation" or directory list or whatever before starting the second one. Can I turn it off somewhere in TC, so that it won't wait for anything just uploading all the files?
Cukorka
- ghisler(Author)
- Site Admin
- Posts: 48107
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC only waits for the "upload OK" from the server - which apparently never comes.
Try this: Upload the file to some other dir, then rename it and pass a relative directory to the right location (with forward slashes).
Try this: Upload the file to some other dir, then rename it and pass a relative directory to the right location (with forward slashes).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hi,
Sorry, not quite understand what u mean... you mean upload the "upload list" file itself to a TEMP directory of the server? Then rename what? The Temp directory? Ok, I rename TEMP (directory) to WHATEVER, but it could've been it's original name already, what do I gain from it?
Sure I'm not on the right track... )
Sorry, not quite understand what u mean... you mean upload the "upload list" file itself to a TEMP directory of the server? Then rename what? The Temp directory? Ok, I rename TEMP (directory) to WHATEVER, but it could've been it's original name already, what do I gain from it?
Sure I'm not on the right track... )