ccwd.exe – Copy Current Working Directory command
I’ve written a small program that can be run from the command line. The ccwd program will copy the current working directory to the clipboard. I wrote it so that I wouldn’t have to right-click, Mark, highlight text in the console window, and press Enter to copy the text of the current working directory.
Now I can just run ccwd.exe and have it done automatically.
The source code is released under a BSD-style open source license, and the Windows binary is 7kb. I made this program intentionally simplistic (it is fashionable to call it light-weight), for people looking for very simple functionality. Place ccwd.exe somewhere in your system path (such as C:\Windows)
ccwd.exe does not produce any output, and returns 0 on success and a nonzero value on failure.
Similar programs can be found here:
- Copy Path to Clipboard – Offers some advanced functionality and Windows Shell extension.
- Stupid Bash Tricks: Copy the Working Directory – setting up an alias in UNIX environments.
- Command-Line Tools and the Windows Clipboard – Assorted command-tools that work with the Windows clipboard.
Leave a Reply