Computing.Net > Forums > Windows NT > Edit ini file from batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Edit ini file from batch

Reply to Message Icon

Name: Richard2112
Date: March 4, 2005 at 09:18:51 Pacific
OS: NT
CPU/Ram: Pentium III
Comment:

I need to edit line an ini file as part of an install, by running a batch. Is this possible please?
e.g change

[settings]
IP=xx.xx.xx.xx
DSN=xxxxxxx

to

[settings]
IP=yyy.yy.yy.yy
DSN=wwwwwwww




Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: March 4, 2005 at 09:45:27 Pacific
Reply:

Hi Richard,

To do it in a batch using only NT [FIND DEBUG etc] soon turns into a kludge.

If you're amenable to using a small [<1KB] utility, life gets easier.

Lemme know.

HTH


M2


0

Response Number 2
Name: Richard2112
Date: March 5, 2005 at 05:14:07 Pacific
Reply:

I cant really use an application as I need to send a single batch file to people. Ive looked a using the FOR command can this be used?

Cheers

Rich


0

Response Number 3
Name: Mechanix2Go
Date: March 5, 2005 at 06:30:09 Pacific
Reply:

Hi Rich,

I understand the constraint.

I can arrange for the BAT to create the COM.

Let me know.

M2


0

Response Number 4
Name: Richard2112
Date: March 5, 2005 at 08:34:46 Pacific
Reply:

Please could you send me the required info for the batch file? That would be excellent, cheers for your help.

Rich


0

Response Number 5
Name: Mechanix2Go
Date: March 5, 2005 at 16:15:38 Pacific
Reply:

Hi Rich,

Yes, I will.

Got to leave for about 15 hours and if I'm not trashed upon return, I'll get it worked up.

Cheers

M2


0

Related Posts

See More



Response Number 6
Name: Mechanix2Go
Date: March 6, 2005 at 23:12:40 Pacific
Reply:

Hi Rich,

OK, Will all the original INI files be identical?

I assume that the changed INI will be specific to the box that it's on, right?

From where will the BATCH get this bit:

IP=yyy.yy.yy.yy
DSN=wwwwwwww

If you can send me an INI, that will help.

Use this address because the SPANbots here are getting completely out of hand.

RichINF22

"at" dodgeit.com


***
Cheers


M2


0

Response Number 7
Name: Richard2112
Date: March 7, 2005 at 00:18:02 Pacific
Reply:

Thanks for your help, but ive sorted it now. I just echo the commands to an ini file

i.e. echo IP=yyy.yy.yy.yy >> test.ini

having deleted the original.

Cheers

Rich


0

Response Number 8
Name: Mechanix2Go
Date: March 7, 2005 at 00:22:50 Pacific
Reply:

Rich,

Good show.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Edit ini file from batch

Win.ini file www.computing.net/answers/windows-nt/winini-file/14286.html

cannot view jpeg file from ie brows www.computing.net/answers/windows-nt/cannot-view-jpeg-file-from-ie-brows/21419.html

NT server reboots when copying files from MAC client www.computing.net/answers/windows-nt/nt-server-reboots-when-copying-files-from-mac-client/9514.html