note
Anonymous Monk
<p> Ok, the problem was autoruns <p> <tt> reg query "HKCU\Software\Microsoft\Command Processor" /s </tt>
<p> [href://http://windowsxp.mvps.org/autoruncmd.htm|How to change the default startup directory for Command Prompt?] <p> [href://http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx|Hidden gotcha: The command processor's AutoRun setting - The Old New Thing - Site Home - MSDN Blogs ]
<p> This could (or not) be considered a win32 perl bug as SH_PATH/[doc://Config]#[doc://Conig#sh] is lacking a /D option <c>$ perl -V:sh
sh='cmd /x /c';</c>
<p> <c>
$ cmd /?
...
/D Disable execution of AutoRun commands from registry (see below)
...
If /D was NOT specified on the command line, then when CMD.EXE starts, it
looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if
either or both are present, they are executed first.
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
and/or
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
</c>
1103030
1103036
13