Kevin,
It works both ways if you call the script from the command line, but it
won't run the script from within a VBS file when called from IMail's
program alias. The problem seems to be the context from which IMail is
running these scripts.
I wrote a batch file that gets called from the program alias, and this
works, but not a VBS script as shown in my example. This is some sort
of environment issue I believe, and not related to the code. Any ideas
about what sort of environment things could be affecting this when
called from IMail?
Thanks,
Matt
Kevin Bilbee wrote:
You need to do a
Shell.Run "cmd /C c:\imail\declude\sniffer\autoSNF.cmd"
cmd is the exe you want to run .cmd files require an interperter to run them
which just happens to be cmd.exe and the /C switch tells CMD.exe to execute
your auto.SNF.cmd script.
do a cmd /? and you will see many options for cmd.exe.
Kevin Bilbee
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Matt
Sent: Friday, January 23, 2004 9:49 AM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Problems with Program Alias
I've tested this program alias with a BAT file that just simply copies
the TMP file to a new location, and that works, however I am not finding
it possible to do something not that entirely different.
I have a program alias that points to a VBS script, and while I have
verified that this VBS script will run, it will not execute the
following command when called by IMail:
Set Shell = CreateObject("wscript.shell")
Shell.Run "c:\imail\declude\sniffer\autoSNF.cmd"
I've emptied the script so that this is all that it contains. If I run
it from a command line, it works perfectly, however if I try to call it
from a program alias, it does not run the embedded command. I have
verified that other segments of the script (when used) will run
correctly, just not the line that calls this other script.
I got this code from the Message Sniffer Web site, something that
another user submitted. I have to assume that in other IMail
installations, this works. On my IMail 8 server, program aliases do
work, but in this case, it just refuses to call this other program...
Any thoughts?
Thanks,
Matt
--
=====================================================
MailPure custom filters for Declude JunkMail Pro.
http://www.mailpure.com/software/
=====================================================
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
--
=====================================================
MailPure custom filters for Declude JunkMail Pro.
http://www.mailpure.com/software/
=====================================================
|