get working directory
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??
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
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 )
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 )
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement