Javascript or Vbscript to read and update .properties file

Posted on 2009-07-14
Last Modified: 2012-05-07
I'm trying to read and update .properties file, and i'm limited to use js or vbs.

any help ?
Question by:srishmawi
  • 3
  • 3
LVL 10

Expert Comment

ID: 24847264
Got any more info?
What does the properties file contain?  Where does it live? What needs changing?

Author Comment

ID: 24847291
this is a sample properties file:

i'm executing a code locally, to change a local properties file.
LVL 10

Expert Comment

ID: 24847341
So you have the file and it has some properties, what do you need to change?
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.


Author Comment

ID: 24847360
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
you can change username, password, port# and other properties.
LVL 10

Accepted Solution

Alan_White earned 50 total points
ID: 24847394
So this is basically an INI file then.  This page has vbscript for reading and writing INI files, would take much to modify it:

Author Comment

ID: 24847532
INI files and Properties files are not the same !
Structure looks the same, but actually they are difference..

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get the number of current month days 2 23
Trying to write a script in Outlook that forwards emails with a new subject... 29 45
Checking data with javascript 3 19
Jquery 10 19
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now