This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12/20/2012 02:34 PM, Denis Excoffier wrote: > On 2012-12-20, 18:49, Earnie Boyd wrote: >> On Thu, Dec 20, 2012 at 6:55 AM, Denis Excoffier wrote: >>> However i don't see how to >>> derive the 8.3 form from my original filename, using DOS only. >> >> The /X argument to cmd.exe's dir command will give you the 8.3 name if >> it exists. Note that your system can be configured to not produce the >> 8.3 form. > > I tried 'dir /X %pathname%', or 'dir /X /B %pathname%' (and other combinations), > i can produce "some" 8.3 strings, bug was unable to produce the replacement > of the full path (with 8.3 strings replaced everywhere). And setting the > result in another variable seems another challengeâ If you put cygpath in the PATH visible to your DOS shell, then 'cygpath -sw [-a]' can come up with the relative or absolute 8.3 name of any path. But I don't know if that counts as what you were looking for. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |