I have a .bat script that just cds into a directory
It is in my home folder. (
cmd when I run it
C:\Users\Me>cddocs C:\Users\Me>cd \Users\Me\Documents\NetBeansProjects\ C:\Users\Me\Documents\NetBeansProjects\>
It works as expected, I'm in the NetBeans directory. In powershell, I get this
PS C:\Users\Me> .\cddocs C:\Users\Me>cd \Users\Me\Documents\NetBeansProjects\ PS C:\Users\Me>
So it appears to run the
cd command, but I am still in my home directory! I must be missing something really simple here. How can I get this tiny script to actually cd the directory in powershell?