Free Tool for Renaming Files with Current Date

For many files, it is good to keep track of when they were originally created. In theory, every file created on any mainstream operating system should have its ‘creation date’ and ‘last date modified’ recorded as part of its metadata. This mechanisms, however, is often unreliable, especially when using file synchronisation tools such as Dropbox or Google Drive.

Thus it is often handy to prefix file names with the date they were created, such as:

2018 09 30 Letter.pdf

There are some nice tools available for this purpose, for instance Bulk Rename Utility. However, I often find these a bit too complex for what I need.

I have thus developed a little tool – Date Namer – , which does just the one thing I require: To prefix file names with the current date.

date-namer.PNG

Be welcome to download this tool from here:

Upcoming release will be published on this page: Releases. Further, all the source code for this tool is available on GitHub.

For those interested in the implementation details: For this project, I tried using Electron. This allows developing a Desktop application using Node.js. I found this overall quite easy to use. Internally this application will run an instance of Chromium to render the application. The running application takes thus around 50 MB of RAM. I think this is not too bad for this use case. The app performance is very good.

Free PDF Printing for Windows without Adware

Printing from any windows application to a PDF printer is not supported in the most recent Windows versions by default.

Most free applications for this purpose which can be found through a simple Google search unfortunately often come with unwanted Malware or Adware (hello, Ask.com toolbar!).

However, there is a free and easy solution which comes bundled without any additional software:

Ghostscript + The FreePDF printer

Just download and install Ghostscript from here: heise.de.

Then, download the FreePDF printer from here: freepdfxp.de/download_de.html

freepdf

The website is in German, so I highlighted the download link in the image above.

Next time you print a document, the FreePDF printer should be available as one of the windows printers:

freepdf-printer

You then can choose whether to save the file or sent it by email (as well as choose the quality):

freepdf-print

The FreePDF/GhostScript solution might not look shiny but it certainly does the job done (and leaves your system free of any unwanted guests).

Windows Explorer New: Add File Types and Templates

Right clicking within a folder of the Windows Explorer allows access to a convenient way to create new files through the context menu:

This post discusses a number of ways how this context menu can be changed.

Edit Menu With Handy Tool

ShellNewHandler is a useful tool to ‘clean up’ the ‘New’ context menu. Just download and run the application and deselect the options you do not need:

Edit Menu Through Windows Registry

Search for ‘regedit’ in the windows search and open the Registration Editor. The relevant entries for the ‘New’ context menu can be found under ‘HKEY_CLASSES_ROOT’.

Specifically, the relevant information should be under the key ‘.[filetype]/ShellNew’.

Set various values within this key to control the behaviour of the New context menu.

  • Adding a value with the name ‘NullFile‘ (and no value) will create a new empty file for the extension if it’s selected from the new context menu.
  • Adding a value ‘FileName‘ with a value of a path to a file will use the pointed to file as a template for creating new files.

References

Add file types and templates (Windows XP)

Reference for Registry Entries (Windows 95)

ShellNewHandler: Useful open source tool to remove entries from the ‘New’ context menu

Get the Exact Position and Size of a Window in Windows

Problem

You would like to know the exact pixel position and size of a window in Microsoft Windows.

Solution

Use the very useful utility Sizer. You can download it for free from the page below:

http://www.brianapps.net/sizer/

I downloaded the portable version (download the Zip Package).

Launch sizer.exe from the extracted zip package.

Then right click the title bar of the window of which you would like to know the position and size.

Select the option Resize/reposition from the context menu. Select ‘New entry …’

Now, you can see the width and height as well as the top and left offset for your window: