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. Displaying a message in VBScript

Displaying a message in VBScript

Scheduled Pinned Locked Moved Visual Basic
csharpsysadmintoolstutorialquestion
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.
  • S Offline
    S Offline
    steff kamush
    wrote on last edited by
    #1

    Hi guys, Anyone know how to display a message in a .vbs? I want to run a script and display a message to the user depending on the outcome of the script. Set objWshNetwork = CreateObject("WScript.Network") strComputer = "k1hq1oa0004a" Usuario="administrator" Set objUser = GetObject("WinNT://" & strComputer & "/" & Usuario & ",user") objUser.SetPassword "123456789" objUser.SetInfo ''Code to display message here :rose::rose: 1fm1fu -- modified at 4:51 Thursday 6th April, 2006

    D 1 Reply Last reply
    0
    • S steff kamush

      Hi guys, Anyone know how to display a message in a .vbs? I want to run a script and display a message to the user depending on the outcome of the script. Set objWshNetwork = CreateObject("WScript.Network") strComputer = "k1hq1oa0004a" Usuario="administrator" Set objUser = GetObject("WinNT://" & strComputer & "/" & Usuario & ",user") objUser.SetPassword "123456789" objUser.SetInfo ''Code to display message here :rose::rose: 1fm1fu -- modified at 4:51 Thursday 6th April, 2006

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

      There's a couple of ways of doing this. You can use Wscript.Echo "message", where each call to Echo will generate a new message box with just an OK button. You can call MsgBox (documentation[^]), where you'll have the ability to specify which buttons will show up and also get a return value for which button was clicked. 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