Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Javascript or Vbscript to read and update .properties file

Posted on 2009-07-14
6
Medium Priority
?
1,908 Views
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 ?
0
Comment
Question by:srishmawi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 10

Expert Comment

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

Author Comment

by:srishmawi
ID: 24847291
this is a sample properties file:
dataSource.username=someuser
dataSource.password=apassword

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

Expert Comment

by:Alan_White
ID: 24847341
So you have the file and it has some properties, what do you need to change?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:srishmawi
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 jdbc.properties
you can change username, password, port# and other properties.
0
 
LVL 10

Accepted Solution

by:
Alan_White earned 200 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: http://www.robvanderwoude.com/vbstech_files_ini.php
0
 

Author Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

618 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