r/vbscript • u/vogeltjeflippo • Apr 29 '23
Pop up
So I made a VBS script that says
"Do
msgbox "Die"
loop"
What I want to know, is can you before the loop open the same program so that it infinitely creates itself and then shuts your pc down?
2
Upvotes
View all comments
2
u/jcunews1 Apr 30 '23
That's an infinite loop. So there is no "then". The "then" would be a code after the loop which will never get executed.
To get what you want, there are two options: