Stoyan of PHPIED.com has found the joy using javascript for scripting in the OS…
I’ve put up a few scripts I find useful in windows (download at the end of the article):
- addpath.js – Add a path to the registry path.
- dt.cmd – Change to desktop folder.
- e.cmd – Open explorer in current or specified folder.
- regpath.js – Output the path stored in the registry.
- updateenvironment.js – Updates running apps with any changed settings in the registry.
And a couple that use python and pywin32:
- ccwd.py – Copy the current working directory to the clipboard
- cpath.py – Copy the current path to the clipboard
All of have acompanying batch files to run them, I generally have everything in a folder c:\usr\cmd, but they should work from anywhere in the path.
Download cmd.zip
Hi! I found your blog post by searching for ccwd. I wrote an identically named tool that is a Windows binary, so you don’t need Python installed. It’s located here: http://coffeeghost.net/2008/07/25/ccwdexe-copy-current-working-directory-command/