Skip to main content
Home
ComScript Manual

Search form

Main menu

  • Home
  • collect

You are here

Home » ComScript Manual » Commands » File Handling Operations
  • ComScript Manual
    • What is ComScript
    • Profiles
    • Device and Connection Types
    • Commands
      • Profile setup
      • Device Communication
      • Data Parsing and Testing
      • Email and File Transfer
      • File Handling Operations
        • append
        • copy
        • create
        • createdir
        • delete
        • deletedir
        • exists
        • rename
      • File Read and Write
      • General
      • Hex and Decimal Conversion
      • Loops and Conditional Expressions
      • Math
      • Time, Date and Timing
      • Variables
    • Profile Editor
    • Variables
    • Data Parsing
    • Data Interface
    • Arrays
    • Binary and Hex Comms
    • Timing and Intervals
    • Execution speed
    • Terminal Emulator
    • Support

exists

exists

Checks for the existance of a file or directory and stores True or False in a result variable.

Attributes:

path: the directory or file to be checked
result: the variable in which to store the result

Example:

<exists path="test.txt" result="var1" />
<exists path="C:\MyDirectory" result="var2" />
‹ deletedir up rename ›
Powered by Drupal