Batch File Restart Outlook
I use the following .reg file to stop Outlook blocking potentially unsafe attachments when I know the attachment is safe.
Code:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security]
"Level1Remove"=".exe; .hlp; .inf"
I then use the following to reset to the default behaviour
Code:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security]
"Level1Remove"=-
The trouble with the top one is that Outlook needs to be restarted for it to come into effect.
How can I close Outlook, enter the data into the registry and restart Outlook from a batch file?
Re: Batch File Restart Outlook
If you don't have kill.exe you can download it from here. You can then make a batch file as follows:
Code:
@echo off
regedit /s c:\path\to\regfile.reg
kill outlook.exe
C:\path\to\outlook.exe
Re: Batch File Restart Outlook
TaskKill works on XP pro. On home I think there is some kind of command...Skill or something weird as dglienna, he knows.
Re: Batch File Restart Outlook
On XP Home, there is the tskill.exe