Discussion Locked

vbs syntax

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

if in a batch file i would write "shutdown -i",
how to i write it in a .vbs file

1 reply

by p.j.hutchison

Dim wshshell
'Create file system object
set wshshell = wscript.CreateObject("WScript.Shell")

wshshell.run "shutdown -i"

This discussion is closed to new replies.