Crazy Homeless Guy Posted June 27, 2009 Share Posted June 27, 2009 Does anyone know if it is possible to change a single line of text in a file .ini file via batch scripting? My guess is no, but I thought I would toss it out there anyway. Link to comment Share on other sites More sharing options...
Dave Buchhofer Posted June 27, 2009 Share Posted June 27, 2009 i'd start here, and search around a little, or give a little more info on the problem. http://blogs.technet.com/heyscriptingguy/archive/tags/Scripting+Guy_2100_/default.aspx Link to comment Share on other sites More sharing options...
Crazy Homeless Guy Posted June 27, 2009 Author Share Posted June 27, 2009 Would like to be able to replace this portion of the 3dsmax.ini file... A number of users here don't have load by scene state enabled. Rather than over write there settings, or open each copy, and enable it, I am wondering if I can just script it. [Gamma] LoadEnableState=1 CorrectColorPickerState=1 CorrectMtlEditorState=1 InputGamma=2.200000 OutputGamma=2.200000 LUTFileName= Link to comment Share on other sites More sharing options...
Dave Buchhofer Posted June 27, 2009 Share Posted June 27, 2009 I know someone else had set that up via maxscript, i think i saw it on the vray forums, but can't recall the search terms Link to comment Share on other sites More sharing options...
Crazy Homeless Guy Posted June 27, 2009 Author Share Posted June 27, 2009 I think I may have found a way here... http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0208.mspx Link to comment Share on other sites More sharing options...
SandmanNinja Posted June 27, 2009 Share Posted June 27, 2009 That's a good fix. I just read this post. I use GREP, which is a freebie windows program that does the same thing as the Linux command of the same name (grep). Link to comment Share on other sites More sharing options...
Crazy Homeless Guy Posted June 27, 2009 Author Share Posted June 27, 2009 Yes, just worked through it, and it works perfectly. It involves 2 files, the first a vbs script, and the second a batch script. The batch script contains a call to the vbs script, and what text strings to rename. I am attaching it for others that may need it, though be aware this is configured for Max2009. If you are using a different version, or have your installation in a custom location you will need to modify the scripts. Link to comment Share on other sites More sharing options...
SandmanNinja Posted June 28, 2009 Share Posted June 28, 2009 Thanks for sharing the file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now