Advertisement

12.30.2006 at 12:05PM PST, ID: 22106936
[x]
Attachment Details

Batch File: How to read environment variable?

Asked by sudhakar_koundinya in MS DOS

Tags: , , , ,

Hi All

How to read an environment variable into Batch Variable?

%%X=%JAVA_PATH%
echo %%X

I tried like the above, but it does not work. Please help me in this.

Thanks
Sudhakar Start Free Trial
[+][-]12.30.2006 at 12:12PM PST, ID: 18219666

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS DOS
Tags: batch, file, variable, read, environment
Sign Up Now!
Solution Provided By: leew
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.30.2006 at 12:16PM PST, ID: 18219678

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.30.2006 at 12:19PM PST, ID: 18219693

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.30.2006 at 12:21PM PST, ID: 18219697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32