ShadowThief wrote: ↑15 Mar 2020 04:31
Then I suggest you write a wrapper script that takes the URL you're downloading as %1 and pipes that to cmd /q
Wouldn't it be possible without wrapper script?
'
There are no ways to enclose code and pipe it into cmd /q like in this pseudo code?
Non-working pseudo-code
Code: Select all
(
echo Hello this is going to be piped to cmd /q
echo everything will work correctly
echo this is only pseudo-code
) | cmd.exe /Q
Uh I quickly came up with poorly looking and almost unreadable but seemingly working example that has no advantage over
@ prefixing way.
Code: Select all
@echo off
(
echo @echo off
echo cls
echo echo Hello this is going to be piped to cmd /q
echo echo everything will work correctly
echo echo this is only pseudo-code
) | cmd.exe /q
pause
If only there were no requirement to prefix every command with
echo this would be perfect.
And it actually works, however, requires tiring mundane prefixation of echo. Which is sad.