Dienstag, 18. Oktober 2016

module '%~dp0' could not be loaded

Error

Calling following gives the below error message. %~dp0 on the Windows command prompt is the equivalent of the bash dirname $0
powershell %~dp0\create_db_patch_deployment_package.ps1
%~dp0\create_db_patch_deployment_package.ps1 : The module '%~dp0' could not be loaded. For more information, run 'Import-Module %~dp0'.

Solution

Use call
powershell -File "%~dp0\create_db_patch_deployment_package.ps1"

Keine Kommentare:

Kommentar veröffentlichen