Mail Archives: cygwin/1998/01/28/19:12:00
A couple of weeks ago I asked the list about programs to convert between
Win32 and POSIX-style pathnames. Thanks to those who replied, particularly
Mumit Khan who pointed me to a message in the mailing list archives. I have
now written a set of utilities and have found them extremely useful, so am
offering them to the world, here:
http://www.niwa.cri.nz/~hadfield/gust/software/gnu-win32/cygwinpath.zip
It seems to me that programs like these should be bundled with Gnu-Win32.
An abbreviated version of the README follows...
This zip file contains console programs for conversion between Win32-style
and POSIX-style path names using the Cygwin32 API.
All programs take input either from the command-line (default) or from
standard input (-i option) and send output (one line per entry) to stdout.
For an example of how these programs can be used, make sure bash.exe and
posixpath.exe are on the search path, then load the file dirprompt.reg into
the registry. Then right-click on a directory and select "Bash Prompt" to
start a bash shell in that directory. It even works on UNC directories with
spaces in the name, which is why it needs so many quotes in the command
string! There's also a fileprompt.reg which works when you right-click on
files.
Have fun!
----
Mark Hadfield, m DOT hadfield AT niwa DOT cri DOT nz http://www.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -