.bat 檔案移動到不在 Powershell 上執行的目錄

.bat 檔案移動到不在 Powershell 上執行的目錄

在我的 powershell 設定檔中,我將該行設定為我的 C: 磁碟機:set-location c:\。但是,我曾經使用路徑變數github跳到我的 github 資料夾。這在命令列上有效,我的其他非 cd 命令在 Powershell 上有效,但不是這個。

:: move from user space to github folder

@echo off
cd users
cd giaco
cd documents
cd github

它只是忽略該命令:

命令

但是,當我使用另一個命令時:

傑基爾構建

效果很好。

我怎樣才能解決這個問題?

謝謝

相關內容