DJFScanProc
  • 1 Minute to read
  • Dark
    Light
  • PDF

DJFScanProc

  • Dark
    Light
  • PDF

Article summary

Overview


Scan a directory for files and process a script when found

launched as DJFScanProc "path of ini file"


INI File

two forms, embedded script or referenced script

 

{

  "company": "datajetsoftware",
  "username": "admin",
  "password": "",
  "scanDirectory": "path to scan ends in /",
  "scanExtension": "xlsx",
  "processedDirectory": "path to processed files, ends in/",
  "to": [
    "someone@mail.com"
  ],
  "scriptName": "StoredScriptName",
  "projectName": "StoreScriptProject",
  "targetProject": "NameOfProjectToCreate"
}

in the embedded form, the entire script is included 


{

  "company": "datajetsoftware",
  "username": "admin",
  "password": "",
  "scanDirectory": [path]/",
  "scanExtension": "xlsx",
  "targetProject": "MyProject",
  "processedDirectory": "[path]/",
  "to": [
    "someone@email.com"
  ],
  "script": [  ]
}

In both cases, the process will override the two defined variables

%INFILE% and %OUTFILE% with the path of the scanned file and the path of the produced file.

A log will also be written to the process directory and will be emailed to everyone in the "to" list.




Was this article helpful?

What's Next