Two Handy Command Line Scripts

I use these two command line utilities every day. There’s not much to them but they do save me keystrokes and time.


@start notepad.exe %*

Open an editor and save this a e.cmd. Substitute your favorite editor for nodepad.exe. This saves me a few hundred keystrokes a day.


e mytextfile.txt


@echo|set /p=""%cd%\%*"" | clip

Save this to a file called cp.cmd. It copies the full file path of the given file to the clipboard. The set /p= part is needed to suppress the newline from the @echo command.


cp index.html
=> clipboard="C:\Users\mike\Documents\GitHub\mike-ward.github.io\index.html"

Not life changing, just handy.

← newer older →
.Net, Technology, Life, Whatever

Recent Posts

Fixed Focal-Length Eyeglasses, a Programmer's Best Friend
How to Choose the Right VPN Service
Two Handy Command Line Scripts
Tweetz 1.3.2
Tweetz 1.3 Release
Mithril Rising
Tweetz Release 1.2.4 - Screen Off Detection
More... (1085)