system()
starts a new process. This new process changes its current directory, then ends. The current directory of your program’s process does not change.
You want chdir()
(or _chdir()
).
More Related Contents:
- C++ system() not working when there are spaces in two different parameters
- System() calls in C++ and their roles in programming
- What is the bit size of long on 64-bit Windows?
- How to use QueryPerformanceCounter?
- Why should the system() function be avoided in C and C++?
- Getting started with OpenCV 2.4 and MinGW on Windows 7
- WINMAIN and main() in C++ (Extended)
- Requesting administrator privileges at run time
- “X does not name a type” error in C++
- C++ high precision time measurement in Windows
- Windows 7 timing functions – How to use GetSystemTimeAdjustment correctly?
- How to create minidump for my process when it crashes?
- C++ How to detect Windows 10
- When and how should I use exception handling?
- When including header files, is the path case sensitive?
- C++ Windows – How to get process path from its PID
- How to target Windows XP in Microsoft Visual Studio C++ [duplicate]
- Difference between ‘strcpy’ and ‘strcpy_s’?
- Intercept windows open file
- Detecting simulated keyboard/mouse input
- How to programmatically create a shortcut using Win32
- How can I save HICON to an .ico file?
- EXE or DLL Image base address
- C++ [Windows] Path to the folder where the executable is located [duplicate]
- ReleaseSemaphore does not release the semaphore
- Passing reference to STL vector over dll boundary
- Getting another process command line in Windows
- Visual Studio 2013: CL.exe exited with code -1073741515
- How to send keystrokes to a window?
- How can I cin and cout some unicode text?