Results 1 to 2 of 2

Thread: how to retrieve path

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    chennai
    Posts
    20

    how to retrieve path

    i want to retrieve the path if the particular filename is given.Also,if i give the particular folder name,the path for that folder must be displayed.is it possible using vbcoding.provide coding for both .

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    What do you need? The user to type in a filename, and you just extract the path from the full filename?

    VB Code:
    1. 'Megatron gave this to me a long time ago
    2. FileName = "C:\Windows\file"
    3. FileName = Left(FileName, InStrRev(FileName, "\"))
    4. MsgBox FileName
    <removed by admin>

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