當我嘗試運行通過運行「激活器dist」命令創建的bat文件時,出現以下異常。 Oops, cannot start the server.
com.google.inject.CreationException: Unable to create injector, see the followin
g errors:
1) Error injecting cons
我的情況下,當啓動目錄的Windows批處理文件類似的問題(除非以後有什麼提): Windows batch file starting directory when 'run as admin' 簡介: 我有一個批處理文件,它位於一個目錄中,並且必須從那裏運行,因爲它更新了此目錄中的文件。 有什麼辦法仍然能夠知道從哪個目錄下的批處理文件運行(當它以管理員身份運行)? 我不希望用戶手動輸入目錄。
我已經爲我的應用程序一起更新了更新程序,以便具有很少或沒有編碼技能的人員可以在自己的計算機上安裝,運行和更新應用程序。 下面是一個更新的例子,對於Windows命令提示符寫: @echo off
for /f %%i in ('call git status --porcelain') do set stash=%%i
if not [%stash%] == [] (
echo Sta