Results 1 to 4 of 4

Thread: validating file path

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    47

    validating file path

    this ia really n00b question but i cant seem to find anything on the forum or google. how do i validate a full file path. i mean i want to check not onl that its the correct format, although i want to validate that too, but also whether the filepath exists. any ideas?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: validating file path

    I don't know what you mean by "correct format", but this will tell you whether a folder exists or not.
    VB Code:
    1. If Dir$("c:\program files\qts\hack", vbDirectory) <> "" Then
    2.    MsgBox "directory exists"
    3. Else
    4.    MsgBox "directory does not exist"
    5. End If

  3. #3

  4. #4
    Member seraphicmortal's Avatar
    Join Date
    May 2005
    Posts
    56

    Smile Re: validating file path

    Hello Greg!! =) I think checking out this link can help solve your problems. =)

    http://www.vbforums.com/showthread.p...ht=file+exists
    Yoroshiku,
    seraphicmortal


    ______________________________________________________
    Thirst for knowledge can never be quenched...Ask for more!!.


    Oh! Please..Show your appreciation by clicking if you deem this post helpful.
    Rate this Post!

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