PC Review


Reply
Thread Tools Rate Thread

Changes path of execution of .BAT files

 
 
G James
Guest
Posts: n/a
 
      1st Jun 2005
When running a batch file for the first time, an Alert
pops up: 'An Unknown Script File Attempting to Run
Requires Approval'.

If you hit 'Allow', the file continues to run, but the
current working directory has been changed
to 'C:\Windows\System32'.

This causes the batch file to execute on files within the
System32 directory and not the original one with
potentially unpredictable results.

After Allowing the batch file the first time, it works as
expected.

I'm running Microsoft Windows XP Professional, Version
2002 with Service Pack 2 and all the critical patches as
of 6-1-05.

I don't expect a follow-up, but wanted to inform the
developers of this issue.

Otherwise, it is a fantastic product with great features.
 
Reply With Quote
 
 
 
 
Bill Sanderson
Guest
Posts: n/a
 
      1st Jun 2005
Thanks for the report. You've described what happens accurately, and this
is indeed a serious bug. It's been reported since early January, and for a
time we had a nice article from the scripting guys at www.microsoft.com to
point to explaining this and other issues.

It should be fixed in beta2, but it is unclear when beta2 will arrive.
--

"G James" <(E-Mail Removed)> wrote in message
news:04d401c566e9$a36add70$(E-Mail Removed)...
> When running a batch file for the first time, an Alert
> pops up: 'An Unknown Script File Attempting to Run
> Requires Approval'.
>
> If you hit 'Allow', the file continues to run, but the
> current working directory has been changed
> to 'C:\Windows\System32'.
>
> This causes the batch file to execute on files within the
> System32 directory and not the original one with
> potentially unpredictable results.
>
> After Allowing the batch file the first time, it works as
> expected.
>
> I'm running Microsoft Windows XP Professional, Version
> 2002 with Service Pack 2 and all the critical patches as
> of 6-1-05.
>
> I don't expect a follow-up, but wanted to inform the
> developers of this issue.
>
> Otherwise, it is a fantastic product with great features.



 
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
How to retrace the execution path? clara Microsoft Excel Programming 1 23rd May 2008 03:44 PM
Re: assembly execution path Mattias Sjögren Microsoft Dot NET 1 14th Apr 2005 09:28 PM
Application execution path pei_world Microsoft C# .NET 3 31st Mar 2004 08:31 AM
Ensure Application Path is unchanged during execution in Access VBA =?Utf-8?B?U3VubnkgT2tvcmll?= Microsoft Access VBA Modules 1 15th Jan 2004 09:32 PM
Re: ECHOing the execution path? Dean Wells [MVP] Microsoft Windows 2000 CMD Promt 1 29th Jul 2003 10:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.