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}
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
User avatar
David de Argentina
 
Posts: 1553
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 1 guest

cron