[1] Well placed quotation marks, " ... ", for long file name with spaces inside usually get you the right place if cd is used properly in the first place. Hence, there is no problem there. Problems do arise if the long file name gets really long and it is laborous to type it at cmdline prompt at interactive box. Then usually you can use dir to help you learn the exact 8.3 alias the system recognizes and use it accordingly.
[2] The real problem arise within batch jobs and programs which accept only 8.3 filename as parameters. Here you have to be more careful.
[3] This is what MS advise the good practice of LFN.
Quote
8.3 file name aliases may change when you copy files from one folder to another for a number of reasons. If you must use 8.3 file names, it may be best not to give the files LFNs. Also, it is good practice not to use LFNs that create a large number of similar 8.3 aliases. For example, instead of using a "Month end report for January.txt" file name, use "January month end report.txt" for the file name. As a result, the "February month end report.txt" file generates a significantly different 8.3 alias.
Unquote
Ref : Q226403
[4] Now, the truely delicate issue is the modification MS used in the implementation of algorithm in generating 8.3 alias of LFN. MS uses a different algorithm for win2000 in comparison with win9x. The is what MS has to say.
Quote
Windows 2000 uses a different algorithm for creating short (8.3) file name aliases for LFNs than does Windows 95 or Windows 98. Windows 95/98 and Windows 2000 all create 8.3 aliases by using the first six characters of the file name and appending "~1" (or another number). For example, the "Month end report for January.txt" file name becomes Monthe~1.txt.
However, unlike Windows 95/98, if more than four files result in the same first six characters, Windows 2000 uses a different procedure starting with the fifth file. Windows 2000 then:
* Uses the first two letters of the long file name.
* Generate the next four letters of the short file name by manipulating the remaining letters of the LFN.
* Appends "~1" (or another number).
For example, the "Month end report for January.txt" file name may become Modrjy~1.txt.
Unquote
Ref Q226403
Amazingly complicate, is it not?
Ref :
Regards - tsuji