Source language: Translate to:

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

Questions and information about using VBScript and JavaScript in NeoBook functions

Moderator: Neosoft Support

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

Postby David de Argentina » Thu Oct 02, 2014 11:19 am

Save as SFN intro the VBscript folder:

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


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

enjoy !
David de Argentina
User avatar
David de Argentina
Posts: 1592
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Return to NeoBook Functions - VBScript & JavaScript

Who is online

Users browsing this forum: No registered users and 0 guests