[tex-live] Passing a valid Windows path and file name to *TeXin TeXlive

Martin Heller mr_heller at yahoo.dk
Wed Jun 11 11:18:25 CEST 2014

Akira Kakuto wrote, on 11-06-2014 09:58:
> Dear Martin Heller,
>> Thats good news. How about
>> Long path names
>> pdftex \\?\some long path\test.tex
>> and UNC paths
>> pdftex \\server\share\test.tex
> All is supported, but use / instead of \.
> In the case of path names with spaces, quotation is needed.
> If you don't use 8.3 names, they should already work in
> TeX Live 2013/2014:
> pdftex "c:/some dir/some file.tex"
> pdftex //server/share/test.tex
> pdftex "//server/share/some dir/sample text.tex"
> The above exapmles work fine in TeX Live 2013/2014.
> 8.3 names are not supported in TeX Live 2014.
> They will be supported in TeX Live 2015.

Thanks. UNC paths works when replacing \ with /. I can't get the "\\?\" 
prefix to work in TeXLive 2013 with forward slash:

C:\>set texfile=\\?\c:\Documents and Settings\test.tex

C:\>dir "%texfile%"
  Volume in drive \\?\c: is OS
  Volume Serial Number is C642-601C

  Directory of \\?\c:\Documents and Settings

06-06-2014  18:42                 8 test.tex
                1 File(s)              8 bytes
                0 Dir(s)  92.530.782.208 bytes free

C:\>echo "%texfile:\=/%"
"//?/c:/Documents and Settings/test.tex"

C:\>pdflatex "%texfile:\=/%"
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/W32TeX)
  restricted \write18 enabled.
entering extended mode
! I can't find file `"//?/c:/Documents and Settings/test.tex"'.
<*> "//?/c:/Documents and Settings/test.tex"

(Press Enter to retry, or Control-Z to exit)
Please type another input file name:

More information about the tex-live mailing list