C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-16-2002, 11:09 PM   #1
Unregistered
Guest
 
Posts: n/a
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?
  Reply With Quote
Old 04-17-2002, 03:42 PM   #2
Registered User
 
Join Date: Mar 2002
Posts: 199
if you use
Code:
int main(int argc, char *argv[] )
argv[0] should contain the filename
Syneris is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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