delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/10/06:36:35

From: andrewd AT axonet DOT com DOT au (Andrew Dalgleish)
Subject: RE: gzip converts stuff to 8.3 filenames
10 Apr 1998 06:36:35 -0700 :
Message-ID: <91A8FD196436D1118EC2006008186C96070582.cygnus.gnu-win32@server1.axonet.com.au>
To: gnu-win32 AT cygnus DOT com
Cc: Allan Peda <allan AT interport DOT net>


> -----Original Message-----
> From:	Allan Peda [SMTP:allan AT interport DOT net]
> Sent:	1998 April 01, Wednesday 12:29
> To:	gnu-win32 AT cygnus DOT com
> Subject:	gzip converts stuff to 8.3 filenames
> 
> I'm fudging around with gzip and those nifty registry sendto commands,
> and I zip a file off to gzip, sure enough emacs-lisp-manual.ps
> becomes EMACS-~1.PS.gz 
> 
> Now: I guess the most sure bet/quick fix is a batch file "wrapper"
> to save the name as a variable and move it.  Anyone have one.  I'll
> wait
> a day and if no reply, I'll post it here.
> 
> .. Well it's (sorta) Cygwin32 related.
> 
> Thanks
> a
> -
> 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".
[Andrew Dalgleish]  
This is not a gzip bug - the Explorer shell sends the short name.

I have a batch file, NotePad and WordPad in my "Send To" menu.
The batch file and WordPad both get the short name, but Notepad opens
the file using the long name.

I suspect that Notepad gets the short name, but then converts it by
calling FindFirstFile().

BTW, to expand a full path you need to call FindFirstFile() for each
directory level in the path, as well as the file name.

Regards,
Andrew Dalgleish

-
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019