getting current working filename

This is a discussion on getting current working filename within the C++ Programming forums, part of the General Programming Boards category; I know that you can get the current working directory by using getcwd or getdcwd. It there a way to ...

  1. #1
    Unregistered
    Guest

    getting current working filename

    I know that you can get the current working directory by using getcwd or getdcwd. It there a way to get the current working filename and store it into a char array?

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    203
    if you use
    Code:
    int main(int argc, char *argv[] )
    argv[0] should contain the filename

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple program not working, don't know why
    By Bakster in forum C Programming
    Replies: 11
    Last Post: 01-29-2009, 12:56 PM
  2. illegal function overloading????
    By Mr_Jack in forum C++ Programming
    Replies: 3
    Last Post: 12-17-2003, 12:03 PM
  3. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 09:16 AM
  4. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM
  5. Doubly Linked Lists ???????
    By Magica in forum C Programming
    Replies: 5
    Last Post: 05-04-2003, 12:14 AM

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