Page 1 of 1

Get the Short File Name (SFN) of a any file...

PostPosted: Thu Oct 02, 2014 11:19 am
by David de Argentina
Save as SFN intro the VBscript folder:

Syntax: [ Download ] [ Hide ]
Using Visual Basic Syntax Highlighting
{NeoBook Function}
Version=5.80
Language=VBScript
Param=[%1]|Text|LongFileName
Param=[%2]|Variable|Return var
{End}
publication.nbSetVar "[%2]", CreateObject("Scripting.FileSystemObject").GetFile("[%1]").ShortPath
 
Parsed in 0.003 seconds, using GeSHi 1.0.8.10


Usage:

Syntax: [ Download ] [ Hide ]
Using Neobook Syntax Highlighting
Call "SFN" "Long_File_Name" "ReturnVar"
Parsed in 0.006 seconds, using GeSHi 1.0.8.10


enjoy !
David de Argentina