To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows how to get or set Windows current working directory by calling Windows dll.
Description
Sometimes when working with LabVIEW you may need to get or set the Windows current working directory, especially when interacting with another application using either files or Active X.
This is a simple VI that can get or set the current working directory. If a directory path is entered, the example will set the current working directory. If no input is entered, the VI will return the current working directory path.
There is no direct function in LabVIEW allowing to achieve this goal, so this example VI calls a Windows DLL to provide the functionality.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.