http://qs321.pair.com?node_id=11111048


in reply to Build Perl win32 with a ' ' in install dir

Starting from Win95 until recently (don't know if it works under Win10, but probably yes), you could use C:\PROGRA~1 instead of C:\Program Files - it is certainly worth a try.

Update: WP on 8.3 filenames

NTFS, a file system used by the Windows NT family, supports LFNs natively, but 8.3 names are still available for legacy applications. This can optionally be disabled […]

Replies are listed 'Best First'.
Re^2: Build Perl win32 with a ' ' in install dir
by fdesar (Beadle) on Jan 06, 2020 at 13:24 UTC

    it seems it doen't work anymore on Windows 10 :

    If I do in a DOS shell a

    dir c:\progra-1

    the only thing I get is a "File not found"!

      Attention: ~ is not a dash, it should be a (squiggly) tilde.

        ... and depending on the previous use of the filesystem, C:\Program Files does not always have the short filename C:\Progra~1. Use dir /x to find the short filename.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      dir c:\progra-1

      It's a tilde (~), not a dash (-). Try

      dir c:\progra~1
      perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

      it seems it doen't work anymore on Windows 10 :

      Hi

      AFAIK, Its a feature you have to choose to turn on, it affects cmd.exe globbing (extra matches)