Jump to content

[ASP] VBScript to write INI file


Recommended Posts

Hey,

I am new to VBScript and need a function to find a specified key in an ini file and update the value. I was looking for something similar to the WritePrivateProfileString which I know how to use in C++ or VB but can't seem to get to work in VBScript. Anyone know how to get it to work with VBScript or just how to update the key value in an ini file once you find it? :unsure:

Thanks

Link to comment
Share on other sites


That loooks like it would work, but then I have to rename the new file overwriting the old file. Is that really the best way to update an existing file? Is there an easy way to rename the new file and overwrite the old file?

Thanks.

Link to comment
Share on other sites

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...