Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. @ECHO OFF
  2. SET ThisScriptsDirectory=%~dp0
  3. SET PowerShellScriptPath=%ThisScriptsDirectory%FileNotifyscript.ps1
  4. 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