home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Windows Scripting programming...HELP

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2426
Discussions: 200,942, Posts: 2,379,323, Members: 246,305
Old July 14th, 2003, 12:04 PM   Digg it!   #1 (permalink)
Ultimate Member
 
SoopaStar's Avatar
 
Join Date: Oct 2001
Location: Cincinnati Area
Posts: 1,761
Send a message via ICQ to SoopaStar Send a message via AIM 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 July 15th, 2003, 08:20 AM     #2 (permalink)
addicted
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 6,103
psst, PM Vass asking him to look at this thread
DVNT1 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
The disrespect of Obama by Russian .. (14)
Making Health Care Worse (155)
Is It Just Me? (2918)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (11)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
Asus P4G8X Mobo (5)
screen resolution vs monitor size (2)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)


All times are GMT -4. The time now is 05:10 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28