fix detection of script shell starting point
This commit is contained in:
1 parent
fc3697be98
commit
a02d857c12
1 file changed
+1
-1
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
|
||||
echo %PSModulePath% | findstr "%USERPROFILE%" >NUL && set ispowershell=1
|
||||
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
|
||||
cd /D "%~dp0"
|
||||
|
||||
echo.
|
||||
|
||||
Reference in new issue
Block a user