vb script check in/out from PDM

Hi,

looking to make a vb script which can check in/out files during the state transition with execute command option. The problem I am facing is to reference to the file which should be checked out

Here is what i currently have:

Set vault = CreateObject("ConisioLib.EdmVault")

vaultName = "VAULT NAME HERE"

vault.LoginAuto vaultName, 0

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set file = objFSO.GetFile("")

If True = file.IsLocked Then

        file.UnlockFile 0, ""

End If

Getting error:

File not found

SolidworksApi macros