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

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

Member of the support class.

Syntax

c = cd

c = cd '..'

c = cd(a)

c = cd a

Description

Returns or modifies the working directory.

Details

Inputs

Name Description
a Specifies a new working directory. a is a string.

Outputs

Name Description
c If you specify c = cd, c returns the current working directory. If you specify c = cd '..', c changes the working directory to the parent directory of the current working directory. If you specify c = cd(a) or c = cd a, c changes the working directory to a. c is a string.

Details

Changes that you make to the working directory with this function apply to all MathScript Nodes in the same application instance as the LabVIEW MathScript Window.

You can change the default working directory by selecting FileğMathScript Preferences to display the MathScript Preferences dialog box and entering a directory in the Working Directory text box.

Examples

C = cd

C = cd '..'

C = cd('C:\Program Files\National Instruments')

Related Topics

pwd


Resources


 

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