Finding EXE Location

This is a discussion on Finding EXE Location within the C Programming forums, part of the General Programming Boards category; I am coding a small app, I want to copy the app itself to the C:\ drive. Is there like ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    18

    Finding EXE Location

    I am coding a small app, I want to copy the app itself to the C:\ drive.

    Is there like some API I can use to get the location of the running application so i can use CopyFile to copy it to the C:\ drive?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It's quite obvious you haven't done a forum search, considering this topic was just talked about yesterday, or at the day before. This topic comes up all the time. How about putting forth a bit of effort to do something for yourself?


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    18
    Sorry...looks like I have found what I'm looking for.

    Will search forum next time

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need help with templates!
    By advocation in forum C++ Programming
    Replies: 6
    Last Post: 03-26-2005, 08:27 PM
  2. Finding location in rand()
    By EliMcGowan in forum C++ Programming
    Replies: 1
    Last Post: 08-11-2004, 12:47 PM
  3. Make an exe copy itself to another location
    By Machewy in forum C++ Programming
    Replies: 24
    Last Post: 06-16-2003, 09:17 PM
  4. EXE recognizing location
    By CodeMonkey in forum C++ Programming
    Replies: 6
    Last Post: 08-23-2002, 01:01 AM
  5. Im so lost at . .
    By hermit in forum C Programming
    Replies: 18
    Last Post: 05-15-2002, 01:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21