I would create another batch file called DevCmd.bat with the following contents: vsvars32.bat cd "%1"
Use this file instead of doing it all in one line. -----Original Message----- From: Andreas Håkansson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:56 AM To: [EMAIL PROTECTED] Subject: [DOTNET] .NET Command Window Shell 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. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.