How do you remove the PowerShell requirement that scripts and executables be preceded by “.\”?

It is a security feature so that you do run scripts that you think you are running. That is why unlike cmd, you do not have . ( current directory) in PATH and you have to do .\my.exe etc.

If you don’t want to do this and subvert this precaution, add . to your PATH:

$env:PATH =$env:PATH+";."

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)