|
-
Jun 5th, 2000, 03:51 AM
#1
Thread Starter
New Member
Hi!
I've got a litte problem that i hope somone can hel me with.
I've got a file (c:\myfile.ini)
The file looks like this:
[WHATEVER]
exec=d:\somedir\somexec.exe
File END
--------------------
Okie, so i want to find out if the file d:\domedir\somexec.exe still is in that dir...
HOW?
SyNTaX- > ERROR?
-
Jun 5th, 2000, 03:56 AM
#2
New Member
Do you need to know how to do the whole thing. or just part of it. Sorta two seperate tasks. 1) Read the line from the INI 2) Check for the files existance. So do you need to know how to do both or just one or the other?
Richard
-
Jun 5th, 2000, 04:00 AM
#3
Thread Starter
New Member
Excuse me if i seemed unclear with my ques.
Yes i need both.
-
Jun 5th, 2000, 04:10 AM
#4
New Member
Try this for a demo of reading an ini file.
http://www.vb-world.net/demos/ini/
and this one is a demo on how do veriry a files existance. Actually it is for getting the files information but it should have some error handling for if the file does not exist. That should give you what you need to test for its existance.
http://www.vb-world.net/files/fileinfo/
Hope that helps,
Richard
-
Jun 5th, 2000, 04:13 AM
#5
Thread Starter
New Member
-
Jun 5th, 2000, 04:18 AM
#6
New Member
Glad I could Help, Most credit goes to John Percival though, he rocks. (nt)
Glad I could Help, Most credit goes to John Percival though, he rocks. (nt)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|