This VI demonstrates how to set or get the current directory in which LabVIEW is working. It calls the functions SetCurrentDirectoryA and GetCurrentDirectoryA located inside the kernel32.dll Windows file. You can use this example as a subVI in your application. If you wire a path to the VI, it sets the current directory to that path. If you do not wire a path, the VI returns the current directory.