CurrentDir Property: Sample Code
Microsoft® Visual Basic for Applications
' Display the current directory
MsgBox(SimAuto.CurrentDir)
' Set the current directory to c:\
SimAuto.CurrentDir = "c:\"
Matlab®
% Display the current directory
disp(SimAuto.CurrentDir)
% Set the current directory to c:\
SimAuto.CurrentDir = 'c:\';