example:
--
swoodkc@SDW2-XP /cygdrive/c/Program Files/libdmtx-win32-0.7.1-1
$ ./dmtxread.exe /cygdrive/f/simon_iec16022.gif
dmtxread.exe: Unable to open file "/cygdrive/f/simon_iec16022.gif" for reading
swoodkc@SDW2-XP /cygdrive/c/Program Files/libdmtx-win32-0.7.1-1
$ cp /cygdrive/f/simon_iec16022.gif .
swoodkc@SDW2-XP /cygdrive/c/Program Files/libdmtx-win32-0.7.1-1
$ ./dmtxread.exe simon_iec16022.gif
http://www.mungewell.org/simon.asc
swoodkc@SDW2-XP /cygdrive/c/Program Files/libdmtx-win32-0.7.1-1
$ ./dmtxread.exe f:simon_iec16022.gif
http://www.mungewell.org/simon.asc
--
Cheers,
Simon,
Simon, are you sure this is possible with a standard Windows application? For example, I don't think I can open "/cygdrive/c/myfile.doc" using Microsoft Word.
The libdmtx-win32 package was built using Visual Studio so I didn't expect them to understand anything about the Cygwin world. However, when using a dmtxread.exe built in Cygwin then your example appears to work fine.
Examples:
Using Visual Studio executable:
$ ./dmtxread.exe /cygdrive/c/Download/example.png
dmtxread.exe: Unable to open file "/cygdrive/c/Download/example.png" for reading
Using Visual Studio executable:
$ ./dmtxread.exe -n C:\\Download\\example.png
123456
Using Cygwin executable:
$ /usr/local/bin/dmtxread.exe -n /cygdrive/c/Download/example.png
123456
From the readme attached to the Win32 binaries:
--
The instructions below will install the libdmtx utilities and
supporting files to your system, after which they can be called
from the DOS or Cygwin prompt.
--
Clearly they don't work so well in a cygwin session as they require 'CMD.COM' notation of paths ;-)
Simon.
PS. The fix may be to edit the readme file and add a note....