How do i run win shell script?

edojan

Registered User.
Local time
Yesterday, 22:41
Joined
Dec 19, 2006
Messages
26
Hello

Here is the shell script i have (vbs)
how do i run it in a module make function out of it???

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 10
WshShell.AppActivate "Microsoft Office Outlook"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{ENTER}"

Thanks
 
What is it you're trying to do? SendKeys is not considered reliable (I don't think you can count on where focus will start in this instance).
 
basically click yes for outlook security window ... but it does work but i have other scripts for other purposes ... just need to know how i either run the vbs file/script from access or integrate into module ...
 
but its not just for outlook security so sendkey wont do it....
We have vbs scripts that ftp files over and stuff ...
 

Users who are viewing this thread

Back
Top Bottom