Results 1 to 2 of 2

Thread: Determining Disk Drive [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Resolved Determining Disk Drive [RESOLVED]

    Is there an simpler way to determine the disk drive your application is running on than using something like App.Path and then just taking the first four characters on the left?


    VB Code:
    1. strPath = App.Path
    2. strPath = Left(strPath, 4)
    Last edited by bat711; Jun 17th, 2005 at 02:54 PM.
    CodeBank: Launch IE

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Determining Disk Drive

    Quote Originally Posted by bat711
    Is there an simpler way to determine the disk drive your application is running on than using something like App.Path and then just taking the first four characters on the left?


    VB Code:
    1. strPath = App.Path
    2. strPath = Left(strPath, 4)

    Actually just this would work:

    VB Code:
    1. Left$(App.Path, 3)

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

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