I have a .bat script that just cds into a directory
cddocs.bat
cd UsersMeDocumentsNetBeansProjects
It is in my home folder. (C:UsersMe)
In cmd when I run it
C:UsersMe>cddocs
C:UsersMe>cd UsersMeDocumentsNetBeansProjects
C:UsersMeDocumentsNetBeansProjects>
It works as expected, I'm in the NetBeans directory. In powershell, I get this
PS C:UsersMe> .cddocs
C:UsersSeth>cd UsersMeDocumentsNetBeansProjects
PS C:UsersSeth>
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?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 199
تاريخ: جمعه
3 ارديبهشت
1395 ساعت: 23:03