ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Anyone Good At .bat Files? (https://www.scoobynet.com/computer-and-technology-related-34/840727-anyone-good-at-bat-files.html)

Puff The Magic Wagon! 07 July 2010 09:36 AM

Anyone Good At .bat Files?
 
Remember them?

I'm after one to replace a bit of text in an ini file depending on the input

ie

Run puff.bat

>Prompt "Enter text"
>Store text to puff.var
>Copy c:\puff.ini c:\puff.old
>Replace text in c:\puff.ini with puff.var

etc

Essentially its to change a single on/off value in a large ini file as we are always forgetting to change it back.

Guess I could have an off copy and copy over existing according to schedule but the problem is that lots of the other parameters in the file might change during the day and its only this one value I wish to change.

Or alternative ideas welcome :)

warrenm2 07 July 2010 12:02 PM

use setini or swissfileknife http://sourceforge.net/projects/swissfileknife/

Shaun 08 July 2010 08:22 PM

FFS James... can't you use Google! :D :cry:

As above -> http://www.cyberkiko.com/Docs/FTPSync28/FAQ0004.htm


All times are GMT +1. The time now is 10:40 PM.


© 2024 MH Sub I, LLC dba Internet Brands