Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

ls (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

Syntax

c = ls(a)

Description

Lists all files in a directory. ls(a) is equivalent to dir(a).

Details

Examples

Inputs

Name Description
a Specifies the directory for which you want a list of files. a can include regular expressions. a is a string.

Outputs

Name Description
c Returns a list of the files in a. c is a string.

Details

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

Examples

% Lists all VIs in the working directory
C = ls('*.vi')

Related Topics

cd
dir


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit