Results 1 to 4 of 4

Thread: API: ShellExecute

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    So. Cal.
    Posts
    4

    API: ShellExecute

    Is there anyway to specify the Directory as a 'CURRENT' directory versus a fixed directory? I want the ShellExecute to launch a file on the root of a CD no matter the Drive letter.

    Any help is appreciated.
    [vbnoo-b] : Brian

  2. #2
    You mean like "\stuff.bat" (that will run from the root of the current drive)?

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    There's a SetCurrentDirectory API call that can change it.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4
    Matthew Gates
    Guest
    Originally posted by JoshT
    There's a SetCurrentDirectory API call that can change it.

    I believe the ChDir statement is the same as that API function.

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