There is enough resource about pretty much every programming system on the Web. This page rather features handy techniques and brief introductions to a few systems.


See Scripting.

Windows Goodies

Send To...

Do you often find yourself in a situation where you have a file selected in Windows Explorer and want to open it in your favorite text/binary editor? Well, you can right-click on the file, select "Open With > Choose Program..." and browse to your editor. The problem is you would have to do that for every different file extension. If you are in a develoment environment where the file extension indicates many different file types, this could be a lot of trouble.

An alternative is to use the "SendTo" folder. Create a shortcut to the editor (say, "X:\Location\YourEditor.exe") in your SendTo folder (e.g, "C:\Documents and Settings\YourLoginName\SendTo"). Then you select a file "X:\Somewhere\File" in Windows Explorer and select "Send To > YourEditor.exe". Windows Explorer simply executes:

	X:\Location\YourEditor.exe X:\Somewhere\File

I have a shortcut to CopyToClipboard.wsf mentioned below in the SendTo folder so that I can copy and paste the full path of a file into my email and other documents.


It's so easy to select text with the mouse and copy it to clipboard but there is no easy way to do it from command line. I simply wanted a tool that would copy the command-line arguments to clipboard and it seemed ridiculous that I had to write code in C++ or Perl just to do that.

Now I've found a way to do that in basically two lines in Windows Scripting with JScript:

	var ie = new ActiveXObject('InternetExplorer.Application');
	ie.Document.parentWindow.clipboardData.setData('text', stringToBeCopied);

This CopyToClipboard.wsf script doesn't require any .exe, Perl, or anything. To download the file, right-click on this link and select "Save Target/Link As...".

Visual Studio tips

Compared to numerous add-ons available for Visual Studio, the following are relatively simple tricks:


Select the "Tools>External Tools..." menu and add a new menu like this:

	Title: Explore...
	Command: Explorer.exe
	Arguments: /select,$(ItemPath)

This will add the "Tools>Explorer..." menu which will run Windows Explorer. If you have a file or a project selected in Solution Explorer, then $(ItemPath) will be replaced by the path name of the file and Windows Explorer will open with the file selected. If Solution Explorer is not active, $(ItemPath) will be the path name of the file you are editing.

The command-line options of Windows Explorer are not known to many people.

	Explorer [/n] [/e] [(,)/root,<object>] [/select,<object>]
		/n   Open a new single-pane window
		/e   Open with the folder tree view
		/root,<object>  Set the specified object as the root of the tree
		/select,<object>  Opens a window view with the object selected

	Example: Explorer /e,/select,C:\Folder\File.ext

Search for "explorer command line options" on Google for more info.

Perforce checkout

Similarly, select the "Tools>External Tools..." menu and add a new menu like this:

	Title: Perforce checkout
	Command: P4.exe
	Arguments: edit $(ItemPath)

More Reading:

  • volley obsession

  • Marque De Vetement Boutique

  • programma retis

  • flavia fenaroli

  • biker