`For a file deferredreportsdaemon.ini
it has content:
ApplicationDatabaseClass=com.systems.pool.MySQLConnectionManager
ApplicationDatabaseUser=administrator
ApplicationDatabasePassword=test
ApplicationDatabaseName=envdata
ApplicationDatabaseServer=eis-mysql0:3308
I want to create a bat file which will promt for new value for variable ApplicationDatabaseName and update in file after i enter the text.
This script will rename the current
deferredreportsdaemon.initodeferredreportsdaemon.ini.oldand will create a newdeferredreportsdaemon.ini.Note: this is probably not the best, most efficient way to do this but it seems to work for me. Also, you will need to add more error checking since I don’t do any here…
Initial ini file content:
After running the script and entering
my_database_name: