1.

Solve : How to read the properties in a dos file?

Answer»

I do have a set of properties in the file, which needs to be made used in my .BAT file.

Say my data.properties file contains

key1=value1
key2=value2

How can I access these values in my .bat file.

Advance THANKS for the help.

I'm guessing the commands are:
set key1=value1
set key2=value2

If so, you can use them with the call command.

Code: [Select]call C:\documents and settings\%username%\Desktop\keys.bat
Try that and see if it works or not. Yep it works. The reply was really fast . Thanks a lot.No problem.

Any other QUESTIONS, you KNOW where to find us.



Discussion

No Comment Found