Results 1 to 3 of 3

Thread: find drive app being run on

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    15

    find drive app being run on

    I know this is probably an easy pone but I am bashing my head trying to figure it out.

    This is not for school assignment it is for me trying to create a dynamic small application.

    I need to run an application from a pen drive. Since different computers call the drive by different letters I need to discover the drive letter and then check for a folder existence. If not there I will make the folder(I know how to manke the file) and ftp from network to the folder then run the items. If it is there I just run the items

    My difficulty(probably due to brain freeze) is how to get the drive letter. Everything else I cam already do.
    thank you

  2. #2
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    540

    Re: find drive app being run on

    Where I'm from we only have one bit of advice for new comers: "If you hear banjos, turn and run".


    VS 2008 .NetFW 2.0

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: find drive app being run on

    In your app, use
    Code:
    Dim appPath As String = Application.StartupPath()
    Dim driveLetter As String = System.IO.Path.GetPathRoot(appPath)
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

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