Cognos Data Manager FileCheck Function

Cognos Data Manager FileCheck Function

CognosDataManagerFileCheckFunction

Function:FileCheck

Category:Control

Syntax:FileCheck('FileName'{,Property});

Explanation:FileCheckfunctionwillcheckthetypeofpermissiononagivenfileandfolder.UsingthisfunctionweabletocheckExists(default),read,write,andexecutepermissiononafileorfolder.

Example:

RETURNFileCheck('C:\Test\');//{,property})ReturnsTRUEiffolderexists.

RETURNFileCheck('C:\Test\Test.bat');//{,property})ReturnsTRUEiffileexists.

RETURNFileCheck('C:\Test\Test.bat','READ');ReturnsTRUEifuserhavingreadpermissiononfile.

RETURNFileCheck('C:\Test\Test.bat','WRITE');ReturnsTRUEifuserhavingwritepermissiononfile.

RETURNFileCheck('C:\Test\Test.bat','EXECUTE');ReturnsTRUEifuserhavingexecutepermissiononfile.

Usage:Tocheckfileavailabilityandpermissiononthefile.

Yourvaluablecommentswillhighlyappreciated.

0 Comments
Leave A Comment

Please login to post your valuable comments.

Join the newsletter

Get the latest vLemonn news first

share