Results 1 to 5 of 5

Thread: dir fonction

  1. #1
    DaoK
    Guest

    dir fonction

    How can I have a function to have the current directory in C.

    Thx you

    Daok

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    getcurdir

  3. #3
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    or getdcwd / getcwd in MSVC++ (getcurdir is Borland)

  4. #4
    DaoK
    Guest
    here is what I have made but it doesn't return all file in the folder... how can I have the same thing as when I type dir in the DOS command ?

    Code:
    	status =	getcurdir(0, cPath);
    
    	if (status != 0)
    		cout << "Erreur dnas l'affichage";
    	else
    	{
    		cout << "Affichage reussite";
    		gotoxy(37,12);
    		printf("\\%s", cPath);
    	}
    	getch();

  5. #5
    DaoK
    Guest
    I have searched "findfirst" in msdn help in c++ and I have seen only stuff about database ?

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