»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2003, 09:04 AM   #1 (permalink)
Registered User
 
SoopaStar's Avatar
 
Join Date: Oct 2001
Location: Cincinnati (used to be St. Louis)
Posts: 1,664
SoopaStar is on a distinguished road
Send a message via ICQ to SoopaStar Send a message via AIM to SoopaStar Send a message via Yahoo to SoopaStar
Windows Scripting programming...HELP

Okay, I have never used VBS scripting, but I need help with a simple script. I am writing a batch file (yes..DOS batchfile) that will backup a users email based on four variables. If the user has Outlook as their client, the file can't be backed up if the program is left running. So, I need a way to kill the outlook.exe.
On one of the batchfile sites, they reccomended using this windows script:
Quote:
Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.AppActivate "Outlook"
wsh.SendKeys "%{F4}"
However, it doesnt' seem to work. The only window that gets sent the alt+f4 is the current window that is open. Can anyone help me out with this? I basically need the script to find the open window "Microsoft Outlook" and kill it. It has to work in windows 9x/Me.

Thanks
Paul

__________________
"Oh, you hate your job? Why didn't you say so? There's a support group for that. It's called EVERYBODY, and they meet at the bar." - Drew Carey
SoopaStar is offline   Reply With Quote
Old 07-15-2003, 05:20 AM   #2 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
psst, PM Vass asking him to look at this thread
DVNT1 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:35 AM.