New question

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

Bryan Dickerson

I seem to recall someone here recently asked this question, but I don't
recall seeing the answer. Can I call an executable from the VBScript in my
custom form? I made some stupid naming errors in designing some of the
setup items need to be installed on each PC before my custom form rolls out,
but I could correct them with a quickie program. So what I would like to do
is put a call to a program in the beginning of my script to correct the
stupidity and then after a couple weeks that everyone has had a chance to
run the program, just take it out quietly and no one is the wiser. So I
guess I'm asking you to help me be sneaky. Is that allowed here? ;-)

Thanx!
 
I am a novice at VBscript coding within Outlook, but
because I have done this on our custom forms, I thought I
would share it with you. If you have the book "Microsoft
Outlook Programming Jumpstart for Administrators,
Developers and Power Users" by Sue Mosher, you will find
you can launch programs, files or Web pages from your
custom forms on page 188. Here is some code example as
per Sue's book, (that I know works)(often need to put the
full path):
Launching Program:
Dim objWSHShell As IWshRuntimeLibrary.IwshShell
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run "notepad.exe"

Launching a Web page:
Dim objIE As SHDocVw.WebBrowser
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "http://www.outlookcode.com"
objIE.Visible = True

Good luck.
Wanda Moyer
 
Thanx! That's exactly what I needed.

Wanda Moyer said:
I am a novice at VBscript coding within Outlook, but
because I have done this on our custom forms, I thought I
would share it with you. If you have the book "Microsoft
Outlook Programming Jumpstart for Administrators,
Developers and Power Users" by Sue Mosher, you will find
you can launch programs, files or Web pages from your
custom forms on page 188. Here is some code example as
per Sue's book, (that I know works)(often need to put the
full path):
Launching Program:
Dim objWSHShell As IWshRuntimeLibrary.IwshShell
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run "notepad.exe"

Launching a Web page:
Dim objIE As SHDocVw.WebBrowser
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "http://www.outlookcode.com"
objIE.Visible = True

Good luck.
Wanda Moyer
 
You mean something like a separate EXE? You can use Windows Scripting to run
an EXE or you can use the Shell command.
 
Back
Top