Search found 4 matches

by lysp
06 Aug 2015 03:52
Forum: DOS Batch Forum
Topic: Multi line variable pipe
Replies: 7
Views: 7218

Re: Multi line variable pipe

Fantastic.

Definitely gives me something to bite my teeth into.

Thanks for your help.
by lysp
06 Aug 2015 02:59
Forum: DOS Batch Forum
Topic: Multi line variable pipe
Replies: 7
Views: 7218

Re: Multi line variable pipe

Hi. (cmd /v:on /c echo !var!) | sort /r Thanks for that. That works great, but as per my post above it looks like I may start to get to issues with variable length. There are some cases where I can probably use that in future. One other follow up question, is there a way to pipe an array out also? e...
by lysp
06 Aug 2015 02:49
Forum: DOS Batch Forum
Topic: Multi line variable pipe
Replies: 7
Views: 7218

Re: Multi line variable pipe

If there is an issue with variable length then I'm guessing the file will be the only solution then. What I'm doing is generating a download list and piping it through aria2c (a unix multi-file downloader ported to win32). The file format is a url and a secondary line to give it a name: https://www....
by lysp
05 Aug 2015 23:55
Forum: DOS Batch Forum
Topic: Multi line variable pipe
Replies: 7
Views: 7218

Multi line variable pipe

I'm trying to redirect a multi line variable that I build in a for-loop into an external program that takes either a text file or a pipe input. The result I'm getting seems to be a common problem where only the first line gets passed through the pipe. Are they any hacks that I can do be able to echo...