The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed
Moderators: Hacker , petermad , Stefan2 , white
KozakMak
Senior Member
Posts: 498 Joined: 2021-05-24, 12:39 UTC
Location: UA
Post
by *KozakMak » 2024-11-06, 15:33 UTC
So I go to
https://www.ghisler.com/1150_beta.htm and using
Snap Links Plus quickly copied the links I needed:
Code: Select all
https://www.totalcommander.ch/beta/tc1150x32_b5.exe
https://www.totalcommander.ch/beta/tc1150x64_b5.exe
https://www.totalcommander.ch/beta/tc1150x32_64_b5.exe
Now, using
HTTP_Downloader.exe --url %$CLIPBOARD% I'm trying to download them. And it all becomes:
Code: Select all
https://www.totalcommander.ch/beta/tc1150x32_b5.exehttps://www.totalcommander.ch/beta/tc1150x64_b5.exehttps://www.totalcommander.ch/beta/tc1150x32_64_b5.exe
Moreover, if you paste these links into a notepad, then line breaks are preserved
OS: Win10 | TC: latest x64
hi5
Power Member
Posts: 641 Joined: 2012-11-03, 11:35 UTC
Contact:
Post
by *hi5 » 2024-11-06, 17:39 UTC
Have you tried %$CLIPBOARD0 % (Same as %$CLIPBOARD%, but replaces line breaks with spaces) ?
Command line options usually can't be multiline but I know nothing about your http download app so could be wrong.
ghisler(Author)
Site Admin
Posts: 50824 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-11-06, 17:51 UTC
Indeed %$CLIPBOARD0% should be used here, it replaces line breaks with spaces. %$CLIPBOARD% inserts the clipboard data unmodified.
KozakMak
Senior Member
Posts: 498 Joined: 2021-05-24, 12:39 UTC
Location: UA
Post
by *KozakMak » 2024-11-07, 07:45 UTC
hi5 wrote: 2024-11-06, 17:39 UTC
Command line options usually can't be multiline but I know nothing about your http download app so could be wrong.
https://github.com/erickutcher/httpdownloader/releases
If I use this - all ok
Code: Select all
https://www.totalcommander.ch/beta/tc1150x32_b5.exe
https://www.totalcommander.ch/beta/tc1150x64_b5.exe
https://www.totalcommander.ch/beta/tc1150x32_64_b5.exe
ghisler(Author) wrote: 2024-11-06, 17:51 UTC
Indeed %$CLIPBOARD0% should be used here, it replaces line breaks with spaces.
httpdownloader just insert first link
ghisler(Author) wrote: 2024-11-06, 17:51 UTC
%$CLIPBOARD% inserts the clipboard data unmodified.
but its modified !
Ctrl+V in notepad looks like:
Code: Select all
https://www.totalcommander.ch/beta/tc1150x32_b5.exe
https://www.totalcommander.ch/beta/tc1150x64_b5.exe
https://www.totalcommander.ch/beta/tc1150x32_64_b5.exe
but
HTTP_Downloader.exe --url %$CLIPBOARD% looks like:
https://ibb.co/j3ZQdy1
OS: Win10 | TC: latest x64
ghisler(Author)
Site Admin
Posts: 50824 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-11-07, 10:41 UTC
No, it's not modified! When you try to step through the characters between two paths, you will see that there are two hidden unprintable characters, which are carriage return (13) and line break (10).
KozakMak
Senior Member
Posts: 498 Joined: 2021-05-24, 12:39 UTC
Location: UA
Post
by *KozakMak » 2024-11-07, 11:23 UTC
so its httpdownloader issue?
OS: Win10 | TC: latest x64
ghisler(Author)
Site Admin
Posts: 50824 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-11-07, 15:57 UTC
It's just a display issue, it probably uses a listbox to show the entries.
browny
Senior Member
Posts: 370 Joined: 2007-09-10, 13:19 UTC
Post
by *browny » 2024-11-07, 23:29 UTC
--url - A URL to download.
Maybe it expects a single URL, and never a list?
Probably most command line parsers do not expect multiline inputs.
Bohny
Junior Member
Posts: 5 Joined: 2023-08-04, 00:24 UTC
Post
by *Bohny » 2024-11-08, 06:27 UTC
My Test:
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\extraLib\HTTP_DL_64\HTTP_Downloader.exe --url %$CLIPBOARD%
%COMMANDER_PATH%\extraLib\HTTP_DL_64\HTTP_Downloader.exe
HTTP_Downloader
-1
Can be pasted into HTTP_Downloader normally :
https://ibb.co/6YZmvcK
ghisler(Author)
Site Admin
Posts: 50824 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-11-08, 09:31 UTC
Apparently this program only accepts a single URL as parameter. Therefore use this instead:
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\extraLib\HTTP_DL_64\HTTP_Downloader.exe --url %$CLIPBOARD1 %
%COMMANDER_PATH%\extraLib\HTTP_DL_64\HTTP_Downloader.exe
HTTP_Downloader
-1
This will only pass the first URL to the program.
Ziabrev
Junior Member
Posts: 45 Joined: 2022-05-12, 18:03 UTC
Post
by *Ziabrev » 2024-11-11, 05:26 UTC
26.04.23 Added: Command line parameters (button bar, start menu): New parameter %|envvar| inserts environment variable envvar, e.g. %|windir| or %|$DESKTOP| in the parameter field (32/64)
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\HTTP_Downloader\HTTP_Downloader.exe
--immediate --url %|$CLIPBOARD|%
%COMMANDER_PATH%\HTTP_Downloader\HTTP_Downloader.exe
Downloader - CLIPBOARD
%COMMANDER_PATH%\HTTP_Downloader\
-1
screen
KozakMak
Senior Member
Posts: 498 Joined: 2021-05-24, 12:39 UTC
Location: UA
Post
by *KozakMak » 2024-11-18, 17:48 UTC
UPD: with Snap Links 3.1.14 all OK !
OS: Win10 | TC: latest x64