|
-
May 4th, 2002, 11:50 AM
#1
dir fonction
How can I have a function to have the current directory in C.
Thx you
Daok
-
May 4th, 2002, 02:39 PM
#2
PowerPoster
-
May 4th, 2002, 02:44 PM
#3
PowerPoster
or getdcwd / getcwd in MSVC++ (getcurdir is Borland)
-
May 4th, 2002, 07:19 PM
#4
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();
-
May 5th, 2002, 10:58 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|