all groups > visual studio .net ide > january 2004 >
You're in the

visual studio .net ide

group:

Help: PostBuildEvent fails mysteriously


Help: PostBuildEvent fails mysteriously Chen Venkataraman
1/30/2004 1:26:51 PM
visual studio .net ide:
It appears that the IDE is spawning cmd.exe in C:\
instead of the project directory that results in the cmd
shell unable to find the .bat file. [used FileMon from
SysInternals to track the file access]

Here's the error i see in the output window

Performing Post-Build Event...
'PostBuildEvent.bat' is not recognized as an internal or
external command,
operable program or batch file.

Post-Build Event failed

Is there a registry setting somewhere that the IDE uses
to decide from which directory the cmd shell should be
launched?

Please help - this is driving me nuts.
Solution: PostBuildEvent fails mysteriously anonymous NO[at]SPAM discussions.microsoft.com
2/5/2004 11:39:27 AM
For those interested...

Finally figured out that my m/c had a registry key for
AutoRun in HKEY_USERS\<sid>\Software\Microsoft\Command
Processor\AutoRun as cd\. This caused all shells to open
with C:\ as the starting directory & it affects shells
spawned by VS.NET also.

After i deleted that key, life was back to normal.

[quoted text, click to view]
AddThis Social Bookmark Button