Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SET scriptPathFull=%~dp0
- SET scriptPath=%scriptPathFull:~0,-1%
- SET BATfileName=%~n0
- SET "psFile=%BATfileName%.ps1"
- echo %psFile%
- PowerShell -NonInteractive -NoProfile -Command "%scriptPath%\%psFile% -wmiLike '*office standard 2007*'"
- echo %errorlevel%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement