GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

vb OUTPUT TO FIEL

Home Forums Scripting Windows Script Host vb OUTPUT TO FIEL

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Zahi738
    Member
    #166393

    HI :))

    Try to output command to a file on network but it doesnot work please help ??

    Option Explicit
    Dim objShell, intShutdown
    Dim strShutdown, strAbort

    ‘ -s = shutdown, -t 120 = 2 minutes, -f = force programs to close
    strShutdown = “shutdown.exe /m \PC-190 /R /T 300 /C “”” & ” Computer Will Reboot Now !!! “”” >> \10.1.0.4SetupLogsShutdown.txt 2>&1

    set objShell = CreateObject(“WScript.Shell”)
    ‘ wscript.echo strCommand
    objShell.Run strShutdown, 0, false

    Wscript.Quit

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.