home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,174 of 68,980   
   Auric__ to Paul Emmons   
   Re: What has happened to short file name   
   11 Apr 18 05:59:43   
   
   From: not.my.real@email.address   
      
   Paul Emmons wrote:   
      
   > I often deal with file names in non-Latin languages.  In these   
   > cases, a directory listing replaces many characters with question   
   > marks.  Sometimes the file name as shown contains nothing but   
   > question marks.  In previous versions of DOS, it was possible to   
   > deal with such files by means of short file names (AKA 8.3) but   
   > Windows 7 does not produce them and this field in the directory   
   > listing is blank.  The short file name was unique to a folder.  If   
   > you copied a file specified with this name, the new copy would   
   > preserve the long file name. No problem.   
   >   
   > But if the only way to refer to a file is with a series of question   
   > marks, then the name is not unique, and an attempt to copy (delete,   
   > etc) it is liable to include many other files.   
   >   
   > Is it possible to force Windows 7 to produce and display short file   
   > names?  If not, how can we work around this problem in order to   
   > deal with files on the command line and in batch programs?   
      
   'dir /x' will show the short name. You can find *just* the files with non-   
   printable characters by piping to 'find "?"':   
      
     C:\Users\auric\Desktop>dir /x *.txt|find "?"   
     04/10/2018  10:50 PM                34 9F20~1.TXT   ????.txt   
      
   More than that is beyond me at the moment. It might help to look through the   
   FAQ:   
      
     https://www.netikka.net/tsneti/info/tscmd.php   
      
   --   
   Usenet is where socks go when they vanish in the dryer.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca