Jump to content

Recommended Posts

Posted

Its working so far you only run it once :idiot:

If you run it twice, it adds xtra lines of the "iniwrite".

But i will solve that by adding the whole Section (where user/pass/mac/computername) in the script.

So when i push out the user.ini, it will be empty on that section, that way i can also make it written in the same order as the "orginal".

And at the end of each use, it will recreate it.

Somehow i willl make it work now.

Shady, thanks a bunch for the help.

May you have a very very happy new year.

Were ever i lay my script is my home...

Posted

Its working so far you only run it once :idiot:

If you run it twice, it adds xtra lines of the "iniwrite".

<{POST_SNAPBACK}>

I solved that problem just now.

The original INIWrite does strange things, so I made my own version.

If you pass the parameters right, it will write the values right.

BTW, did you know why it failed?

Because it's not a standard INI file format.

Download my INIWrite function with an example that shows that it can replace:

set var="CONF_REGION" value="Sweden"
set var="CONF_PROVIDER" value="Övriga"

with:

set var="CONF_REGION" value="Holland"
set var="CONF_PROVIDER" value="Chello"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...