Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8526441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:16:25+00:00 2026-06-11T08:16:25+00:00

`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

  • 0

`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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:16:27+00:00Added an answer on June 11, 2026 at 8:16 am

    This script will rename the current deferredreportsdaemon.ini to deferredreportsdaemon.ini.old and will create a new deferredreportsdaemon.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…

    @echo off
    
    set /P DBNAME="Please enter an Application Database Name: "
    set INI=deferredreportsdaemon.ini
    set OLD=%INI%.old
    
    copy /Y %INI% %OLD%
    del %INI%
    
    FOR /F "delims=\= tokens=1,2" %%K IN (%OLD%) DO (
        IF "%%K" NEQ "ApplicationDatabaseServer" echo %%K=%%L >>%INI%
    )
    
    echo ApplicationDatabaseServer=%DBNAME% >>%INI%
    

    Initial ini file content:

    ApplicationDatabaseClass=com.systems.pool.MySQLConnectionManager
    ApplicationDatabaseUser=administrator
    ApplicationDatabasePassword=test
    ApplicationDatabaseName=envdata
    ApplicationDatabaseServer=eis-mysql0:3308
    

    After running the script and entering my_database_name:

    ApplicationDatabaseClass=com.systems.pool.MySQLConnectionManager 
    ApplicationDatabaseUser=administrator 
    ApplicationDatabasePassword=test 
    ApplicationDatabaseServer=eis-mysql0:3308 
    ApplicationDatabaseName=my_database_name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

File : #comment1 #comment2 #comment3 #START HERE a: a@email.com b: b@email.com my perl program
File structure: Code : <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Metnik EL Logo</title> </head>
// File test.cpp #include <my_global.h> #include <algorithm> int main() { return 0; } Compiled
FILE *fp; fp=fopen(c:\\test.txt, r); int fgetc (FILE *fp); int fputc( int c, FILE *fp
File is sent to the client using Response.writefile and content diposition as inline. When
File test.cmd: name=dummy for /f eol=; tokens=1 delims=, %%i in (list.txt) do ( echo
file.contain.query.txt ENST001 ENST002 ENST003 file.to.search.in.txt ENST001 90 ENST002 80 ENST004 50 Because ENST003 has
File.Copy allows simple file copying. When a duplicate file name is encountered, File.Copy has
File 1 has 5 fields A B C D E, with field A is
File foo has text: This| is a line. If I place the cursor at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.