Guest User

Untitled

a guest
Feb 12th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set WSHShell = WScript.CreateObject("WScript.Shell")
  2. Set oFS = CreateObject("Scripting.FileSystemObject")
  3.  
  4.  
  5. 'Open a text file of computer names
  6. 'with one computer name per line
  7. Set oTS = oFS.OpenTextFile("computers.txt")
  8.  
  9. 'go through the text file
  10. Do Until oTS.AtEndOfStream
  11.  'get the next computer name
  12. 'store it in variable strCompname
  13. strCompname = oTS.ReadLine
  14.  
  15.  
  16.     strText = "Bitch You are  a faggit"
  17.     Set objVoice = CreateObject("SAPI.SpVoice")
  18.     objVoice.Speak strText
  19.  
  20.  
  21. Loop
  22. 'close the text file
  23. oTS.Close
Add Comment
Please, Sign In to add comment