PC Review


Reply
Thread Tools Rate Thread

.BAT file has wrong current path on first run

 
 
Alex
Guest
Posts: n/a
 
      22nd Mar 2005
The first time you run an unknown .BAT file, Microsoft
AntiSpyware gives you a warning dialog and asks you to
allow or block the execution of the batch file. If you
click Allow, however, the .BAT file is run with the wrong
current directory, often causing it to fail at its task.
If you then run it again, this time the warning dialog
does not come up because AntiSpyware remembers to allow
the batch file, and the current directory is set just
fine.

This is particularly annoying when the batch file does
something like create a file in the current directory as
you get random files scattered around your computer.
 
Reply With Quote
 
 
 
 
Bill Sanderson
Guest
Posts: n/a
 
      22nd Mar 2005
Thanks Alex--this has been reported since early in the beta and is known to
Microsoft and being fixed.

There was a good article at the scripting center, and available via Technet
on scripting issues with Microsoft Antispyware, but it has gone missing.
I'm trying to get that fixed, but don't have any substitute to offer in the
meantime.
--
FAQ for Microsoft Antispyware:
http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Alex" <(E-Mail Removed)> wrote in message
news:099701c52e83$1670c590$(E-Mail Removed)...
> The first time you run an unknown .BAT file, Microsoft
> AntiSpyware gives you a warning dialog and asks you to
> allow or block the execution of the batch file. If you
> click Allow, however, the .BAT file is run with the wrong
> current directory, often causing it to fail at its task.
> If you then run it again, this time the warning dialog
> does not come up because AntiSpyware remembers to allow
> the batch file, and the current directory is set just
> fine.
>
> This is particularly annoying when the batch file does
> something like create a file in the current directory as
> you get random files scattered around your computer.



 
Reply With Quote
 
Andre Da Costa
Guest
Posts: n/a
 
      22nd Mar 2005
I have some parts of it I posted to my blog, I don't know if it will be of
any assistance though, but you check it out here:
http://spaces.msn.com/members/adacosta/Blog/cns!1ppieQf0aF6k7J0XYrJfhfMQ!1017.entry

--

Andre
http://spaces.msn.com/members/adacosta
FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Alex" <(E-Mail Removed)> wrote in message
news:099701c52e83$1670c590$(E-Mail Removed)...
> The first time you run an unknown .BAT file, Microsoft
> AntiSpyware gives you a warning dialog and asks you to
> allow or block the execution of the batch file. If you
> click Allow, however, the .BAT file is run with the wrong
> current directory, often causing it to fail at its task.
> If you then run it again, this time the warning dialog
> does not come up because AntiSpyware remembers to allow
> the batch file, and the current directory is set just
> fine.
>
> This is particularly annoying when the batch file does
> something like create a file in the current directory as
> you get random files scattered around your computer.



 
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
Current file path =?Utf-8?B?QXJqYW4=?= Microsoft Excel Programming 4 25th Nov 2006 10:38 AM
Wrong path for .PST file =?Utf-8?B?TG9ibzIydmE=?= Microsoft Outlook Discussion 2 12th Aug 2006 10:44 PM
Macro to cause Explorer to open in same file path location that current file is located. cparnell@southernstorefixtures.com Windows XP General 0 11th Jan 2006 10:26 PM
.BAT file has wrong current path on first run Alex Spyware Discussion 2 22nd Mar 2005 04:56 PM
path to current file... daschund Microsoft Excel Programming 1 31st Aug 2004 11:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:26 AM.