Reading user environment variables into a batch file

I have an application which is in C # that sets user environment variables

PCManufacturer

and PCModel

I need to be able to read values ​​from variables in a batch file. How to do it?

I tried %PCManufacturer%

and %PCModel%

but they didn't work.

0


a source to share


2 answers


Go to the command line and run the SET command. Make sure PCManufacturer and PCModel are listed and set to actual values.



+1


a source


c_workman:

As a follow up, this web page should be helpful:



http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true

+1


a source







All Articles