1.

Solve : its always the simple things I have trouble with...?

Answer»

To my way of thinking, this should place the contents of a file into an environment variable:

Code: [Select]type temp.txt|SET /p me=
But, alas, it does not.

Thanks in advance for any help you may be able to provide.Code: [Select]set /p me=<temp.txt
Quote from: John_L. on February 15, 2016, 07:57:00 AM

To my way of thinking, this should place the contents of a file into an environment variable:

Code: [Select]type temp.txt|set /p me=
But, alas, it does not.

Thanks in advance for any help you may be able to provide.
Does the text files have multiple lines? The SET /P redirection only puts the FIRST line of the file into a variable.its always the simple things I have TROUBLE with...

I smiled, coz you apparently have trouble thinking of a descriptive THREAD title too.

file to an environment variable might have been a little better.


Discussion

No Comment Found