473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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
registry.
-------------------------- Don't include this line in the
file ---------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\cmd.Net]
@="Open .Net Command Window Here"

[HKEY_CLASSES_ROOT\Drive\shell\cmd.Net\command]
@="cmd.exe /k \"C:\\Program Files\\Microsoft Visual Studio .NET
2003\\Common7\\Tools\\vsvars32.bat\""

[HKEY_CLASSES_ROOT\Directory\shell\cmd.Net]
@="Open .Net Command Window Here"

[HKEY_CLASSES_ROOT\Directory\shell\cmd.Net\command]
@="cmd.exe /k \"C:\\Program Files\\Microsoft Visual Studio .NET
2003\\Common7\\Tools\\vsvars32.bat\""
-------------------------- Don't include this line
er ---------------------------------------
Regards,
Tom Dacon
Dacon Software Consulting

Nov 15 '05 #1
0 1390

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Dacon | last post by:
"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...
10
by: aagee | last post by:
Hi all Can someone clue me in on this? I just noticed that following doesn't work as it used to: window.open(... "fullscreen=yes" ...) Used to get a window that occupied the whole screen;...
7
by: MLH | last post by:
Is there any case you can imagine that A97 would NOT display the Unhide option under the Window menu after running this line... Me.Visible = False Yes, its happening to me. The Unhide choice...
4
by: Daniel Miller | last post by:
I have developed a simple text editing program using Windows Forms. I want to be able to right-click on a text file, choose "Open With" and select my program from the list to open the file, but I...
7
by: Hareth | last post by:
When VS2003 is installed : I can open Form1.cs w/ windows "open with" contextmenu, then it opens the file w/ notepad & it works fine but after installing VS2005, "open with" doesnt...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
3
by: Tin Gherdanarra | last post by:
A colleague gave me a project where there was a /designer/ window for database connectivity (drag&drop from the toolbox), but I can't find out how to get a /designer/ window in my own project....
1
by: Paul Sullivan | last post by:
I have encountered the same problem another posted about several months ago. Unfortunately, there was no result posted on the old thread. I will let the original message text stand and ask if...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
24
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.