Obtaining short DOS file names?

Paul Stodghill stodghil@cs.cornell.edu
Tue Jun 6 07:45:00 GMT 2000


I've attached a Perl script that converts long file names to short file
names. Hope that some else finds this useful.


milhouse% perl shorten.pl  '/cygdrive/c/Program Files/Microsoft Visual \
Studio/VIntDev98/ScriptLibrary/RECORDSET.HTM'
/cygdrive/c/PROGRA~1/MICROS~4/VINTDE~1/SCRIPT~1/RECORD~1.HTM
milhouse% 

> -----Original Message-----
> From: Paul Stodghill [ mailto:stodghil@CS.Cornell.EDU ]
> Sent: Wednesday, May 31, 2000 10:38 AM
> To: 'cygwin@sourceware.cygnus.com'
> Subject: RE: Obtaining short DOS file names?
> 
> 
> Chris wrote,
> > There is no cygwin-specific way of getting the short file 
> > name.  The concept
> > has no meaning on UNIX.  There are Windows programs available 
> > which do this.
> > 'dir' is one of them, for instance.
> 
> Gotcha. I can hack something up from this.
> 
> > Is there some reason why quoting the filename doesn't work?
> 
> It would, but it will take me a while to track down all of 
> the places that
> the scripts are broken. I'm looking for something quick and 
> dirty to get
> going.
> 
> Thanks.
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: shorten.pl
Type: text/x-perl
Size: 688 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000606/965a64a7/attachment.bin>


More information about the Cygwin mailing list