I want my 8.3

Started by stanl, October 16, 2020, 03:59:34 AM

Previous topic - Next topic

stanl

Code (WINBATCH) Select


;convert long path to 8.3 short name
path = "C:\Program Files (x86)\WinBatch\The list of fixes and improvements.txt"
oFS = CreateObject("Scripting.FileSystemObject")
sp = oFS.GetFile(path).ShortPath
oFS =0
Message(path,"Short Path: ":sp)
Exit

snowsnowsnow

Why not just use FileNameShort() ?

Unless my web browser is misconfigured, I do believe this is a WinBatch group.

(Or has this become a .NET group and I just didn't notice?)