Advertisement
Guest User

PS1 WRAPPER

a guest
Sep 26th, 2013
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.26 KB | None | 0 0
  1. @echo off
  2. SET scriptPathFull=%~dp0
  3. SET scriptPath=%scriptPathFull:~0,-1%
  4. SET BATfileName=%~n0
  5. SET "psFile=%BATfileName%.ps1"
  6. echo %psFile%
  7.  
  8. PowerShell -NonInteractive -NoProfile -Command "%scriptPath%\%psFile% -wmiLike '*office standard 2007*'"
  9. echo %errorlevel%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement