WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: stanl on October 16, 2020, 03:59:34 AM

Title: I want my 8.3
Post by: stanl on October 16, 2020, 03:59:34 AM
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
Title: Re: I want my 8.3
Post by: snowsnowsnow on October 19, 2020, 04:31:33 PM
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?)