Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- SET ThisScriptsDirectory=%~dp0
- SET PowerShellScriptPath=%ThisScriptsDirectory%FileNotifyscript.ps1
- PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%PowerShellScriptPath%""' -Verb RunAs}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement