[QUAR] Accessing outside datasets?
Eliot Moss
moss@cs.umass.edu
Sun May 7 10:50:36 GMT 2023
On 5/6/2023 11:44 PM, Bernard Rich via Cygwin wrote:
> Hello, I have read the introductory advice but still do not understand how
> to access datasets stored on *C:* or on flash drives. Can you please point
> me to the correct reference or email me the instructions?
You can give a full path starting with /cygdrive/c in place of the C:. Then
replace every \ in a Windows path with a /. Quote the whole thing if it has
spaces or strange characters in it.
Alternatively you can use the cygpath program to convert a Windows path to
a cygwin one. For example:
cygpath -ua 'C:\Users\moss'
results in
/cygdrive/c/Users/moss
Note the quoting to avoid the usual interpretation of \ by the cygwin shell.
This can be used in a command, e.g.,: ls $(cygpath -ua 'C:\Users\moss')
man cygpath will tell you all about the program. HTH -- EM
More information about the Cygwin
mailing list