471,892 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,892 software developers and data experts.

"Open .Net Command Window Here" context menu for Windows Explorer

"Open .Net Command Window Here" context menu for Windows Explorer:

The reg file described below adds a new menu item to Windows Explorer's
context menu when you right-click over a folder (or the drive root). The
menu item text is "Open .Net Command Window Here". When you click it, it
opens a command window positioned at that directory and runs the
vsvars32.bat file to set the .Net Framework environment variable settings.
This makes it easy to run the .Net Framework command line utilities without
having to put those settings into autoexec.bat, and without having to
navigate to the target directory with the CHDIR command in a standard
command window.

This has been tested on Windows XP Professional and Windows 2000 Server. I
anticipate no problems running it on Windows 2000 Workstation.

To install this on your system:

1. Paste the lines below into a Notepad window, and save it somewhere under
a file name such as OpenNetCmdWindow.reg. The file paths apply to VS.Net
2003. If you're still running VS.Net 2002, you'll have to modify them
according to wherever the vsvars32.bat file is located in that environment.
Likewise if you didn't install VS.Net on the C drive, make the appropriate
change. NOTE: the lines beginning with the @ character must appear on a
single line, so if your emailer wordwraps them you'll need to rejoin the
lines (hint: there's a space between .NET and 2003).

2. In Windows Explorer, right-click on the name of the reg file you created,
and choose the menu item "Merge" to insert the registry keys into the system
-------------------------- Don't include this line in the
file ---------------------------------------
Windows Registry Editor Version 5.00

@="Open .Net Command Window Here"

@="cmd.exe /k \"C:\\Program Files\\Microsoft Visual Studio .NET

@="Open .Net Command Window Here"

@="cmd.exe /k \"C:\\Program Files\\Microsoft Visual Studio .NET
-------------------------- Don't include this line
er ---------------------------------------
Tom Dacon
Dacon Software Consulting

Jul 21 '05 #1
0 2258

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Daniel Miller | last post: by
7 posts views Thread by Hareth | last post: by
1 post views Thread by Paul Sullivan | last post: by
5 posts views Thread by Stefano Tonello | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.