Skip to content

Commit

Permalink
handle .webp change
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmanto committed Jun 2, 2023
1 parent 4943698 commit eeef864
Show file tree
Hide file tree
Showing 2 changed files with 528 additions and 2 deletions.
32 changes: 30 additions & 2 deletions bangwallpaper42.vbs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
Option Explicit
Dim WshShell

Dim objFSO
Dim cmd
Dim counter
Dim f
Dim ftd
Dim i
Dim ke
Set WshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

counter = 0
ftd = false
ke = true
while ke = true
counter = counter + 1
f = "rotanconv" & counter & ".ps1"
if(objFSO.FileExists(f)) then
ke = true
ftd = true
else
if(ftd = true) then
ke = false
f = "rotanconv" & counter - 1 & ".ps1"
end if
end if
if counter < 2 OR counter = 37 then
ke = true
end if
wend

WshShell.Run "powershell.exe -nologo -NoProfile -ExecutionPolicy Bypass -command .\rotanconv36.ps1", 0, false
cmd = "cmd /c powershell.exe -nologo -NoProfile -ExecutionPolicy Bypass -command .\" & f
WshShell.Run cmd, 0, false

set WshShell = nothing
WScript.Quit
Loading

0 comments on commit eeef864

Please sign in to comment.