My Send To

I think this will start off with a small digression. Delphi is a wonderful software development language. As time gets closer to another release, the usual ‘future of Delphi’ chatter starts to surface. My personal take on Delphi is that it is one of the most powerful development environments/languages out there. I think it just suffers from a lack of and poor exposure. A lack of knowledge and understanding leads to fear and hostility (or negativity). After all it is easier to criticize and 'bash' something rather than admit you don’t fully understand it or are wrong. On to the original though that got me here ….

The ability to right clicking on a file or folder in Windows Explorer and selecting ‘Send To' to perform some action is a great time saver. What better way to quickly e-mail a file to a colleague There is a downfall to the limit the default options leave you. There are often times when I want to copy a file or folder to another location for backup or distribution purposes. There are also times that I’d like to quickly print and unopened text documents.
Under Windows you can add your own choices to the ‘Send To’ menu option. This is surprisingly easier than one would expect. In order to do this you first need to make sure that you have explorer set to show hidden program or system files. Next, browse to C:\Documents and Settings\\SendTo. Once you open the Send To folder you will notice that the other send to shortcuts. Place a shortcut to your favorite folders or printers (I find it easier to just drag and drop printers into this folder) in the SendTo folder to have it appear in the list.

Straight to the Prompt

Even in the world of Windows it is often necessary to perform tasks via the command prompt. Along with the console applications that I have created, there are many other command line utilities that I use. Often, these utilities need to be run within a specific directory (a.k.a. folder). Instead of opening up the command window and changing to the desired directory, I find it much easier to open up Windows Explorer, right click on a folder select a menu option and have a command window open, already changed to a selected directory (similar to New Date Folder). This option is not a standard part of Windows Explorer but can be added rather easily.


1. Open Windows Explorer
2. Select Tools --> Folder Options
3. Select the File Types Tab
4. Select Folder from the list of Registered file types
5. Click on Advanced
6. Click the New… button
7. Type Prompt in the Action field
8. In the application field you can type one of two lines:
command.com /k cd %1
or
cmd.exe /k cd "%1"
The difference between the two is that the first option will browse with short file name and the second with long file names.
9. Keep clicking the OK button until you are back to Windows Explorer


You can now right click on a folder and easily get to a command prompt in a selected directory.

As always, proceed with caution when changing file types or any system setting. Basically, if you are uncomfortable doing this type of stuff then it might be best if you consult someone that has a high comfort level in making these types of changes.

AddrMon Updated

An update to AddrMon (1.0.0.49) has been posted and is ready for download. AddrMon is a FREE network utility to ping, monitor or traceroute a remote host. A number of adjustments have been made to this simple yet powerful application. The biggest change is the addition of the Monitor Grid. The Monitor Grid lets you view a summary of all the hosts being actively monitored. This will eliminate the cluttered window and simplify monitoring when monitoring multiple hosts. For additional information be sure to check out the AddrMon product page.

If you have any feature suggestions or product questions please feel free to post a comment.

New Date Folder

I constantly backup and keep revisions of documents stored on my computer. For sorting and identification purposes typically create a folder with name conjured up using the current date and time. I usually create a folder name with the following format: ‘yyyymmdd hhmmss’. This allows me to see exactly when a ‘snapshot’ was taken and they pretty easy to sort in the correct order.

Opening Windows Explorer, browsing to the desired folder, selecting File--> New -->Folder and then renaming the folder, IMHO, takes way too much effort. I find it a lot easier to just open Windows Explorer, right clicking on a folder and then selecting ‘New Date Folder’ from the context menu . This speeds things up significantly and requires a lot less thought.

The ‘New Date Folder’ option can easily be added to your context menu as well. First open up notepad (or your favorite text editor) and enter the following text:

@echo off
SET MONTH=
SET DAY=
SET YEAR=
SET HOUR=
SET MIN=
SET SEC=

SET MONTH=%DATE:~4,2%
SET DAY=%DATE:~7,2%
SET YEAR=%DATE:~10,4%

SET HOUR=%TIME:~0,2%
IF "%HOUR:~0,1%" == " " SET HOUR=0%TIME:~1,1%

SET MIN=%TIME:~3,2%
SET SEC=%TIME:~6,2%

md "%1\%YEAR%%MONTH%%DAY% %HOUR%%MIN%%SEC%"

Save that document some place on your local hard drive as a batch file. The batch ‘datetime.bat’ in the folder C:\Batch is what I will use for this example. Next, open up Windows Explorer and select Tools --> Folder Options from the menu bar. This will open the Folder Options Dialog. Select the File Types tab. Scroll to Folder in the Registered file types list and click the Advanced button. In the Edit File Type dialog click on New. Type New Date Folder in the Action field and cmd.exe /c c:\batch\datetime.bat "%1" in the application field. Click OK on each of the open dialogs until you get back to Windows explorer. You should now be able to right click on a folder and be able to select New Date Folder to create a new subfolder with the current date and time.

One thing to note is that this will not work on network folders unless they are accessed via a mapped drive. Also, you may have to work with the precision on the SET lines in the batch file to work with your system's regional settings.

If you are uncomfortable or unfamiliar with any of the concepts discussed here you should probably refrain from doing this yourself and consulting someone who has a greater comfort level. I am sure you don’t want to inadvertently change anything that could potentially lead you to some computer headaches.

Reading Stuff

Information in this document subject to change without notice.
All Software source code published is for demonstration and knowledge sharing purposes only. The Code is supplied "as is" without warranty as to result, performance or merchantability. Use at your own risk.
The opinions expressed herein are the opinions of the author and do not reflect those of any other entity.