What is the difference between Current Directory and Working Directory in Windows? How can one change working Directory for applications like Notepad++ or Mozilla Firefox?
Current directory and working directory are just two different names for the same thing. Each process maintains a single current directory.
The current directory is specified on startup as a parameter to whichever function is used to create the process, for example CreateProcess
. How do you change the current directory for one of your applications? Well, it depends how you start it.
CreateProcess
, the working current will be whatever you pass to CreateProcess
in the lpCurrentDirectory
parameter. If you pass NULL
then the current directory of the parent process will be used.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With