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

Checklist Buddy Available for Testing
Tweetz 2.0.0 Released
Tweetz 2.0 Beta
VSColorOutput 2.7 - Time Stamps
Fixed Focal-Length Eyeglasses, a Programmer's Best Friend
How to Choose the Right VPN Service
Two Handy Command Line Scripts
More... (1089)