INI file access from VBScripts? 
Author Message
 INI file access from VBScripts?

I'm attempting to read key values from an INI file using a VBScript,
but I'm not having much luck.  I know how to declare everything in
Visual Basic, buy would anyone happen to know how to do it in VBS?
The web has not been helpful.  Thanks in advance.


Wed, 02 Jul 2003 04:28:44 GMT  
 INI file access from VBScripts?


Quote:
> I'm attempting to read key values from an INI file using a VBScript,
> but I'm not having much luck.  I know how to declare everything in
> Visual Basic, buy would anyone happen to know how to do it in VBS?
> The web has not been helpful.  Thanks in advance.

AFAIK, you can't.  I did it by creating a DLL in VB and instantiating the
object from VBScript.


Wed, 02 Jul 2003 05:49:03 GMT  
 INI file access from VBScripts?


Quote:
> I'm attempting to read key values from an INI file using a VBScript,
> but I'm not having much luck.  I know how to declare everything in
> Visual Basic, buy would anyone happen to know how to do it in VBS?
> The web has not been helpful.  Thanks in advance.

One other alternative -- you can always use the file system objects and
parse the INI file yourself.  If other processes are updating it and you
write to it then it's not a good idea since the INI files are buffered in
memory and you will corrupt things.  If you are just reading then it's an
option.


Wed, 02 Jul 2003 05:50:14 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Using VBScript to update an INI file

2. VBScript ObjectModel for editing .ini file ??

3. Can VBScript read a standard ini file?

4. ini file in vbscript

5. How can I read from a INI-File in VBScript

6. INI-MANAGEMENT: how to locate private Ini-File ?

7. Read/Write INI Files w/Access 7.0

8. Using ini files in Access 2000

9. Convert Excel or Access spreadsheet to INI file format

10. Accessing info from INI file

11. Accessing .INI file

12. Accessing .ini file in connect string

 

 
Powered by phpBB® Forum Software