Solved

Open UI with VBScript

Posted on 2006-11-13
3
649 Views
Last Modified: 2008-02-01
I am tasked with opening a modal UI (a UI which must have a user click a selection to continue) which is not viewable by the user at the console. This is for testing a piece of software to see how it responds to a spawned UI which cannot continue.
It was suggested I use the Shutdown command, but I am unsure how to call it from within VBScript.

Thanks for your help!
JohnD
0
Comment
Question by:johndarby
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
gecko_au2003 earned 500 total points
Comment Utility
shutdown command of windows ?

http://www.burzurq.com/forum/shutdown_icon.html

If thats the case then this should suffice in vbscript :

Set WshShell = CreateObject("Wscript.Shell")

WshShell.Exec "C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 1"

If that does not work then use the .Run command of WshShell ie

WshShell.Run "C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx 1"

obviously you have to make sure the path to RUNDLL32.EXE is in the right path otherwise the above wont work.

Thanks
0
 
LVL 1

Author Comment

by:johndarby
Comment Utility
Thanks Gecko!
0
 
LVL 23

Expert Comment

by:gecko_au2003
Comment Utility
your welcome :) let me know if it works
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to setup 18 78
scoreUp challenge 14 47
Fibonacci challenge 11 81
Looking for example pivot year code used in Y2K 4 46
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now