PC Review
Forums
Newsgroups
Microsoft AntiSpyware
Spyware Application Compatibility
Batch file looses directory context
Forums
Newsgroups
Microsoft AntiSpyware
Spyware Application Compatibility
Batch file looses directory context
![]() |
Batch file looses directory context |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
When a batch file is launched from the run command, a
popup comes up asking for permission to allow it. On allowing it the script runs but from the system32 directory, rather than the directory of the batch file which is the behaviour or the run command Once the batch file has been run once and the "remember this action" is selected the command runs correctly. Put this in a batch file cd pause save to not your system32 directory. and run from the start|run look at the output on the first run (when antispyware intevenes) and the subsequent runs (when it doesn't) Regards Simon |
|
|
|
#2 |
|
Guest
Posts: n/a
|
>On allowing it the script runs but from the system32
>directory, rather than the directory of the batch file >which is the behaviour or the run command This bug is potentially catastrophic - a script could completely mess up the system32 directory. I disabled the script blocking feature immediately upon noticing it. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks - that's a good catch!
"Simon" <Simon@cmg.noemail> wrote in message news:044e01c4f4aa$de2c0120$a501280a@phx.gbl... > When a batch file is launched from the run command, a > popup comes up asking for permission to allow it. > > On allowing it the script runs but from the system32 > directory, rather than the directory of the batch file > which is the behaviour or the run command > > Once the batch file has been run once and the "remember > this action" is selected the command runs correctly. > > Put this in a batch file > cd > pause > > save to not your system32 directory. and run from the > start|run look at the output on the first run (when > antispyware intevenes) and the subsequent runs (when it > doesn't) > > Regards > > Simon |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

