How to use “cd” command using Java runtime?
There is no executable called cd, because it can’t be implemented in a separate process. The problem is that each process has its own current working directory and implementing cd as a separate process would only ever change that processes current working directory. In a Java program you can’t change your current working directory and … Read more