Solved

Open UI with VBScript

Posted on 2006-11-13
3
656 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
ID: 17932454
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
ID: 17932485
Thanks Gecko!
0
 
LVL 23

Expert Comment

by:gecko_au2003
ID: 17932524
your welcome :) let me know if it works
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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 …

770 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