Advertisement
favmatteo

Verifica Python Installazione Windows

Nov 9th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo "Ciao, sto controllando se Python e' installato nel computer"
  2.  
  3. $p = &{python -V} 2>&1
  4. $version = if($p -is [System.Management.Automation.ErrorRecord]) {
  5.     $p.Exception.Message
  6. } else {
  7.     $p
  8. }
  9.  
  10. echo $version
  11. read-host "Premi invio per terminare..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement