Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Edit ini file from batch

Original Message
Name: Richard2112
Date: March 4, 2005 at 09:18:51 Pacific
Subject: Edit ini file from batch
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



Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: March 4, 2005 at 09:45:27 Pacific
Subject: Edit ini file from batch
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 2
Name: Richard2112
Date: March 5, 2005 at 05:14:07 Pacific
Subject: Edit ini file from batch
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 3
Name: Mechanix2Go
Date: March 5, 2005 at 06:30:09 Pacific
Subject: Edit ini file from batch
Reply: (edit)
Hi Rich,

I understand the constraint.

I can arrange for the BAT to create the COM.

Let me know.

M2


Report Offensive Follow Up For Removal

Response Number 4
Name: Richard2112
Date: March 5, 2005 at 08:34:46 Pacific
Subject: Edit ini file from batch
Reply: (edit)
Please could you send me the required info for the batch file? That would be excellent, cheers for your help.

Rich


Report Offensive Follow Up For Removal

Response Number 5
Name: Mechanix2Go
Date: March 5, 2005 at 16:15:38 Pacific
Subject: Edit ini file from batch
Reply: (edit)
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


Report Offensive Follow Up For Removal


Response Number 6
Name: Mechanix2Go
Date: March 6, 2005 at 23:12:40 Pacific
Subject: Edit ini file from batch
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 7
Name: Richard2112
Date: March 7, 2005 at 00:18:02 Pacific
Subject: Edit ini file from batch
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 8
Name: Mechanix2Go
Date: March 7, 2005 at 00:22:50 Pacific
Subject: Edit ini file from batch
Reply: (edit)
Rich,

Good show.

M2


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Edit ini file from batch

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




CMOS/GPNV checksum bad

3 Strikes

how to find complete path of a file

Replication of DC with ADC

Deleting a block of text with sed


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC