473,842 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 OpenNetCmdWindo w.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

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

[HKEY_CLASSES_RO OT\Drive\shell\ cmd.Net\command]
@="cmd.exe /k \"C:\\Progra m Files\\Microsof t Visual Studio .NET
2003\\Common7\\ Tools\\vsvars32 .bat\""

[HKEY_CLASSES_RO OT\Directory\sh ell\cmd.Net]
@="Open .Net Command Window Here"

[HKEY_CLASSES_RO OT\Directory\sh ell\cmd.Net\com mand]
@="cmd.exe /k \"C:\\Progra m Files\\Microsof t Visual Studio .NET
2003\\Common7\\ Tools\\vsvars32 .bat\""
-------------------------- Don't include this line
er ---------------------------------------
Tom Dacon
Dacon Software Consulting

Nov 15 '05 #1
0 1425

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

Similar topics

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 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...
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; now I get the title bar and status bar too. Any ideas?
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 is grayed out after running this line on a form that was opened with the acDialog parm. Guys, this wierd stuff I'm encountering, could some hardware issue be responsible or would a viral element be more likely at fault?
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 don't know how to get my program to "accept" a file in such a way. Is it using the command line? If so, what arguements are passed? Should I deal with them after capturing the Load event, or is there a different event? Am I not even close? ...
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 function correctly. If I try to open with notepad, it forces an open to VS2005
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 document and closes it with the following code: <body onload="window.print(); window.close();"> This works correctly (or at least the way I expect it to work under MS Internet Explorer, but it cuases Netscape to "crash"
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. Shift-F7 does not work. What do I have to do in order to get a /designer/ window? Thanks Tin
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 anyone can help me with this.. "I have created a deployment project for a .NET program which opens a file with a custom extension. I have added the file type to the deployment project. After installation, double clicking a file with that...
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 found this solution: http://www.codeproject.com/KB/shell/openwith.aspx but it's not good for me since it will execute the process directly.
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 seems to have a (tiny) amount overhead since window itself points to the global object, hence, a circular reference. (From everything I am reading, window is just a REFERENCE back to the global object, as opposed to a separate object.)
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.