Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub SplashScreen()
- Dim shell : Set shell = CreateObject("WScript.Shell")
- Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
- Dim tempFolder : Set tempFolder = fso.GetSpecialFolder(2)
- Dim tempName : tempName = "Splash.hta"
- Dim tempFile : Set tempFile = tempFolder.CreateTextFile(tempName)
- tempFile.Writeline "<html>"
- tempFile.Writeline "<head>"
- tempFile.Writeline "<bgsound src=""http://hackoo.alwaysdata.net/pirates.mp3"" loop=""infinite"">"
- tempFile.Writeline "<title>Splash Screen</title>"
- tempFile.Writeline "<HTA:APPLICATION ID=""oMyApp"""
- tempFile.Writeline "APPLICATIONNAME=""splash"""
- tempFile.Writeline "BORDER=""none"""
- tempFile.Writeline "CAPTION=""no"""
- tempFile.Writeline "SHOWINTASKBAR=""no"""
- tempFile.Writeline "SINGLEINSTANCE=""yes"""
- tempFile.Writeline "SYSMENU=""no"""
- tempFile.Writeline "SCROLL=""no"""
- tempFile.Writeline "WINDOWSTATE=""normal"">"
- tempFile.Writeline "<link rel=""stylesheet"" media=""screen"" type=""text/css"" title=""design_encoder"" href=""http://hackoo.alwaysdata.net/design_encoder.css""/>"
- tempFile.Writeline "</head>"
- tempFile.Writeline"<SCRIPT LANGUAGE=""VBScript"">"
- tempFile.Writeline "Sub CenterWindow(x,y)"
- tempFile.Writeline "window.resizeTo x, y"
- tempFile.Writeline "iLeft = window.screen.availWidth/2 - x/2"
- tempFile.Writeline "itop = window.screen.availHeight/2 - y/2"
- tempFile.Writeline "window.moveTo ileft, itop"
- tempFile.Writeline "End Sub"
- tempFile.Writeline "Sub Window_OnLoad"
- tempFile.Writeline "CenterWindow 400,300"
- tempFile.Writeline "iTimerID = window.setInterval(""ShowSplash"", 28000)"
- tempFile.Writeline "End Sub"
- tempFile.Writeline "Sub ShowSplash"
- tempFile.Writeline "Window.Close()"
- tempFile.Writeline "End Sub"
- tempFile.Writeline "</SCRIPT>"
- tempFile.Writeline "<body bgcolor=""black"">"
- tempFile.Writeline "<DIV id=""Splash"">"
- tempFile.Writeline "<CENTER>"
- tempFile.Writeline "<p>"
- tempFile.Writeline "<img src=""http://nsm05.casimages.com/img/2011/07/23//1107230741401311048506419.gif""/><br>"
- tempFile.Writeline "<center onselectstart=""ShowSplash"" ondragstart=""ShowSplash"" oncontextmenu=""ShowSplash"">"
- tempFile.Writeline "<marquee DIRECTION=""UP"" HEIGHT=""200"" WIDTH=""350"" SCROLLAMOUNT=""2"" onselectstart=""ShowSplash"">"
- tempFile.Writeline "<center><font face=""Comic sans MS"" color=RED size=4><b><i>SearchFile and Backup By Extension</i></b></font></center><br>"
- tempFile.Writeline "<center><font face=""Comic sans MS"" color=red size=2>It's a Vbscript to search for files by their extensions and organize them by copying in different folders with names on their extensions chosen from the beginning of the research.<br>"&_
- "and generate search results in a table in HTML, citing information<br>"&_
- "on these files such that their paths, creation date, modification date, size and attributes<br>"&_
- "and display thumbnails of diffrent types of images in the search<br>"&_
- "Eg if the search includes image files will be displayed as thumbnails.</b></font></center>"
- tempFile.Writeline "<br><center><font face=""Comic sans MS"" color=RED>by © Hackoo 2012<br><br></font></center><center><img src=""http://nsm05.casimages.com/img/2011/07/23//1107230741401311048506419.gif""></center></marquee>"
- tempFile.Writeline "</center>"
- tempFile.Writeline "</p>"
- tempFile.Writeline "</CENTER>"
- tempFile.Writeline "</DIV>"
- tempFile.Writeline "</body>"
- tempFile.Writeline "</html>"
- tempFile.Writeline "tempFile.Close"
- shell.Run tempFolder & "\" & tempName ,1, True
- End Sub
- Call SplashScreen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement