Results 1 to 6 of 6

Thread: Filefind/Filereading

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3

    Question

    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?

  2. #2
    New Member
    Join Date
    Jun 2000
    Location
    Winston Salem, NC
    Posts
    13
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3

    Smile

    Excuse me if i seemed unclear with my ques.

    Yes i need both.

  4. #4
    New Member
    Join Date
    Jun 2000
    Location
    Winston Salem, NC
    Posts
    13
    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3
    Thanks!

  6. #6
    New Member
    Join Date
    Jun 2000
    Location
    Winston Salem, NC
    Posts
    13

    Talking 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
  •  



Click Here to Expand Forum to Full Width