get working directory

Started by
1 comment, last by MTclip 19 years, 1 month ago
2 questions all C / C++ 1.I am using FindFirstFile(), what I want to know is how to access a folder inside the directory i am working in..... lets say i want to access a folder named - Debug - so FindFirstFile("//Debug/.*") ---- i think this works... any ways 2. Is there a way to find the working directory?? ////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
Advertisement
1. lookup msdn documentation for dirent

2. getcwd(), _getcwd()

EDIT:
1. dirent is the way to do it in unix - but MSDN Documentation has a porting guide ( chapter 10 "UNIX scandir example" here )
ps: working with file descriptors should also work ( at least on Unix it does ).
2. getcwd() is UNIX, _getcwd() is Win32. Again, see MSDN Unix->Win32 Migration Guide ( same link but more on the top )
our new version has many new and good features. sadly, the good ones are not new and the new ones are not good
works for me.
...thanks

This topic is closed to new replies.

Advertisement