PC Review


Reply
Thread Tools Rate Thread

bug: permitted batch files stripped of parameters when real time mode is on

 
 
Arthur Eschenlauer
Guest
Posts: n/a
 
      2nd Dec 2005
I frequently write .BAT and .CMD files onto which I can drop other files
from within Windows Explorer. For example, if I drop a file onto a batch
file that has the line
echo DLL is '%~s1'
then it echoes the full path to the file to the command-line window that
opens up.

When I do this with AntiSpyware Real Time Protection turned on, it asks me
if I want to allow the script to run. I say yes, but the parameters are not
passed to the script, i.e., it gets a null value for the path to the dropped
file (%~s1 is hosed). If I try again, the script is executed without asking
permission, but again, the parameters are lost.

If I turn off Real-Time Protection, the scripts run the way that I expect.
That is my workaround, but IMHO a script that is permitted to run with
Real-Time Protection turned on should receive all of the parameters that it
would receive with Real-Time Protection turned off.


 
Reply With Quote
 
 
 
 
Bill Sanderson
Guest
Posts: n/a
 
      3rd Dec 2005
There are several bugs relating to scripts. Another (and perhaps related to
what you are seeing) is that a script runs in the context of
Windows\System32, rather than the usual context (the location of the script
file, as I recall??)

There was a very nice Scripting Guys article on Microsoft's website about
this for a period of time, but it went away, and I didn't keep a copy of it.

My advice is to turn off the checkpoint that handles scripts if you do much
of this on a given machine--or just shut down Microsoft Antispyware, and
restart it afterwards.

--

"Arthur Eschenlauer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I frequently write .BAT and .CMD files onto which I can drop other files
>from within Windows Explorer. For example, if I drop a file onto a batch
>file that has the line
> echo DLL is '%~s1'
> then it echoes the full path to the file to the command-line window that
> opens up.
>
> When I do this with AntiSpyware Real Time Protection turned on, it asks me
> if I want to allow the script to run. I say yes, but the parameters are
> not passed to the script, i.e., it gets a null value for the path to the
> dropped file (%~s1 is hosed). If I try again, the script is executed
> without asking permission, but again, the parameters are lost.
>
> If I turn off Real-Time Protection, the scripts run the way that I expect.
> That is my workaround, but IMHO a script that is permitted to run with
> Real-Time Protection turned on should receive all of the parameters that
> it would receive with Real-Time Protection turned off.
>



 
Reply With Quote
 
Bill Sanderson
Guest
Posts: n/a
 
      3rd Dec 2005
I realized that I was pretty accepting of the fact that these bugs exist in
the product. The fact is, they've been there since January. I'm not sure
whether they've done any work to alleviate some of the issues--I suspect
not. The focus is on getting it all right in beta2.

So--I can say for sure that these issues won't be there in beta2--but I can
also say that it is unlikely that there will be any change in beta1
behaviors before then.

--

"Arthur Eschenlauer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I frequently write .BAT and .CMD files onto which I can drop other files
>from within Windows Explorer. For example, if I drop a file onto a batch
>file that has the line
> echo DLL is '%~s1'
> then it echoes the full path to the file to the command-line window that
> opens up.
>
> When I do this with AntiSpyware Real Time Protection turned on, it asks me
> if I want to allow the script to run. I say yes, but the parameters are
> not passed to the script, i.e., it gets a null value for the path to the
> dropped file (%~s1 is hosed). If I try again, the script is executed
> without asking permission, but again, the parameters are lost.
>
> If I turn off Real-Time Protection, the scripts run the way that I expect.
> That is my workaround, but IMHO a script that is permitted to run with
> Real-Time Protection turned on should receive all of the parameters that
> it would receive with Real-Time Protection turned off.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSE and AVG9 in real time protection mode Jackson Anti-Virus 3 25th Aug 2010 02:20 PM
Poor real time operation in DOS emulation mode =?Utf-8?B?UFNSdW1iYWdo?= Windows XP General 11 26th Sep 2007 04:10 AM
real time query parameters =?Utf-8?B?YmJpZzgwNTI0?= Microsoft Access Queries 9 28th Apr 2006 01:03 PM
Calling a batch file in context menu with _multiple_ parameters files Vinzz Windows XP Help 1 20th Sep 2005 10:49 PM
Command line parameters to use MSAS in batch files? Peki Spyware Discussion 2 6th May 2005 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 AM.