07-19-2003, 01:06 AM
heres the cue. I have a database program. Of course It has a path for the connection. What if I'll want to place the path of the database to text or .bat file so I could edit it easily. How do I call the file?
Any response will be greatly appreciated.
07-19-2003, 01:44 AM
i don't see why you'd want to put it in a batch file if the only purpose is to store the path for later retrieval.
just place the path in a plain text file and then use normal text processing methods ( Open, Input, Read, etc ) to read in the values.
alternatively, if you'd still like to strore the path in plain text and not bother with writing your own parsing methods you could use an xml or ini file.
07-21-2003, 04:42 AM
Great idea but I'm kind of hoping you can give me the code on how to do it. That would be of great help.
07-21-2003, 05:02 AM
Why don't you store the path in an environment variable ? You could retrieve it using the environ() function.