Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Logoff using the script

Logoff using the script

Scheduled Pinned Locked Moved Visual Basic
htmldatabasecomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    B L Praveen
    wrote on last edited by
    #1

    I need to logoff a systme by running the script. As per my Knowledge the user32.dll library should be included in the Script and it funciton exitwindow sholud be called with unflag value set to zero.But i saw similar code in Visual Basic code from the site VBnet.com . Please help me out to do same thing with vbscript.

    Praveen

    D 1 Reply Last reply
    0
    • B B L Praveen

      I need to logoff a systme by running the script. As per my Knowledge the user32.dll library should be included in the Script and it funciton exitwindow sholud be called with unflag value set to zero.But i saw similar code in Visual Basic code from the site VBnet.com . Please help me out to do same thing with vbscript.

      Praveen

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      VBScript cannot do this like the code you've seen. It has no facility to make calls into the Win32 API like in your example. It can, however, use WMI to do the same this using the Win32_OperatingSystem[^] class.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups