Results 1 to 3 of 3

Thread: Default Directory

  1. #1

    Thread Starter
    Junior Member mharley's Avatar
    Join Date
    Jan 2002
    Location
    Nova Scotia, Canada
    Posts
    24

    Default Directory

    Is there a way to determine the directory that a program is being run out of? I want the common dialog box do default to the directory that the program resides in. Is there an API for this (in which case I have posted this to the wrong forum, sorry. ;-) ), or is there a vb command?

    Mark

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    The common dialog would know only if you knew. So, before envoking it, you have to find it, retrieve the folder name, and set that folder name as its InitDir.

  3. #3
    Si_the_geek
    Guest
    try "app.path" to get the program directory

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