I'm trying to add a shell command to the driver and directory entries in the registry so I can right-click any drive or dir in windows explorer and choose "Open .NET Cmd Window" and it will open a new cmd.exe for that dir and have environement varibles for the .net framework set.
I've added these two keys (watch for line-wrap) [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\net\command] @="%comspec% /k 'C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat\' & 'cd %L'" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\net\command] @="%comspec% /k 'C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat\' & 'cd %L'" But I just wont work. If I run on of the command then it will work, but as soon as I try to add both commands and seperate them with a & or even && the second one fails. Anyone know how to get this to work? -- Andreas Håkansson Student of Software Engineering andreas (at) selfinflicted.org In a world in which we are all slaves to the laws of gravity, I'm proud to be counted as one of the freedom fighters. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.