Link to home
Start Free TrialLog in
Avatar of srishmawi
srishmawi

asked on

Javascript or Vbscript to read and update .properties file

I'm trying to read and update .properties file, and i'm limited to use js or vbs.

any help ?
Avatar of Alan_White
Alan_White
Flag of United Kingdom of Great Britain and Northern Ireland image

Got any more info?
What does the properties file contain?  Where does it live? What needs changing?
Avatar of srishmawi
srishmawi

ASKER

this is a sample properties file:
dataSource.username=someuser
dataSource.password=apassword

i'm executing a code locally, to change a local properties file.
So you have the file and it has some properties, what do you need to change?
for example the password property
or the username property
the file contains alot of properties.

The properties file is mostly used in Java, for example jdbc.properties
you can change username, password, port# and other properties.
ASKER CERTIFIED SOLUTION
Avatar of Alan_White
Alan_White
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
INI files and Properties files are not the same !
Structure looks the same, but actually they are difference..