Solved

Open UI with VBScript

Posted on 2006-11-13
3
653 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

910 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

22 Experts available now in Live!

Get 1:1 Help Now