On Wed, May 16, 2012 at 7:43 AM, Robert Jackson <[email protected]> wrote:
> We dynamically build up a %PATH% location and store into a variable.
I'm still not quite sure what you mean there. :-) I'm getting the
feeling there's a larger problem wrapped around this one which may be
relevant and/or solved a better way.
> At this point the content of that variable is a
> string that occupies a number of lines. The contents of the variable are
> then passed through MakeTxt.exe and the resultant output is ... expressed
> as a single line of text..
Here is an NT CMD batch script which takes multi-line input and
spits it out as a single line:
http://pastebin.com/UtqmmDRV
You can invoke OneLine.CMD from a parent batch file or command
prompt. You can even use it with environment variables, although CMD
requires you to jump through a few hoops first:
http://pastebin.com/ayypgqZK
The PowerShell example given is certainly easier to both write and
understand. :-)
-- Ben
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin