2 Replies Latest reply: Jan 22, 2013 7:56 AM by StoneDX RSS

    Get Inbox path

    StoneDX
      Hi all,

      I would like to read the first line of my imported file tio check if the Period in my file is similar to the POVPeriod delected.
      I decided to build a BefImport script to do that.
      Below is an extract of that script where I open my file :

      objFilePath = +"*<<Inbox Path>>*"+ & strFile
      Set fso = CreateObject("Scripting.FileSystemObject")
      If fso.FileExists(objfilepath) Then
      Set fs = fso.OpenTextFile(objfilepath,ForReading)
      Else
      RES.PlngActionType = 6
      RES.PstrActionValue = "Le fichier " & objfilepath & " est introuvable."
      Exit Sub
      End If

      My problem is that I do not know my Inbox folder Path.
      Is there a function or a property that give me this information, so I can add it in my obFilePath definition ?

      Thank you for your help
      Sébastien