Inclure du code PS dans un fichier Batch
Salut,
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| ;@echo off & Setlocal EnableExtensions
;echo CMD %ERRORLEVEL%
;:<<Code Batch>>
;Findstr -rbv ; %0 | powershell -c -
;goto:sCode ######################################
"PSH " | Write-Host -for yellow -no
$_=$OFS;$OFS=''
$char=87,65,76,73,68,50,77,73,64,71,77,65,73,76,46,67,79,77
([string][char[]]($char));$OFS=$_
exit 5
;:sCode ######################################
;:<<Code Batch>>
;echo CMD %ERRORLEVEL%
;pause & goto :eof |