Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. if not exist "%userprofile%\Menu Iniciar\Programas\Inicializar\%~nx0" copy "%~nx0" "%userprofile%\Menu Iniciar\Programas\Inicializar"
  3.  
  4. :segue
  5. net start | find /i "Mensageiro">NUL
  6. if %errorlevel%==1 goto pula
  7. msg /TIME:3 * "MENSAGEIRO ESTµ ATIVO"
  8. exit
  9. :pula
  10. (
  11. Echo. On Error Resume Next
  12. Echo. Dim Sh
  13. Echo. Set Sh = WScript.CreateObject("WScript.Shell"^)
  14. Echo. If MsgBox("Serviço de mensageiro não iniciou!" ^& vbCRLF ^& vbCRLF ^& "Você gostaria de inicia-lo agora ?", vbQuestion + vbYesNo + vbDefaultButton2, "Iniciando o serviço"^) =6 Then
  15. Echo. sh.Run "cmd /c sc config messenger start= auto"
  16. Echo. sh.Run "cmd /c net start messenger"
  17. Echo. End If
  18. )>Satti.vbs
  19. CSCRIPT //NOLOGO Satti.vbs
  20. DEL /Q /S Satti.vbs >NUL
  21. EXIT/b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement