Solved

Javascript or Vbscript to read and update .properties file

Posted on 2009-07-14
6
1,634 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
  • 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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 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: 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

762 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

22 Experts available now in Live!

Get 1:1 Help Now