LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create hidden folder

Hi.
How can I find the 'My Document' path of the windows if the it is installed in c or d or other drives?
And how can i create a hidden folder?
Thanks.
Ali S.Mootab
0 Kudos
Message 1 of 3
(3,701 Views)
For the first point, you have to make a recursive folder seeker... see attached 😉

To make a hidden folder... hmmm... on MacOS that's easy, just add a point "." at the beginning of the name of the folder, in Windows, I don't know...


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 3
(3,695 Views)


@ali mootab wrote:
Hi.
How can I find the 'My Document' path of the windows if the it is installed in c or d or other drives?
And how can i create a hidden folder?
Thanks.
Ali S.Mootab


"My Documents" path is quite simple if you have LabVIEW 7.0 or newer. Just use the Default Data Directory path VI in the File Constants palette and remove one hierarchy level with Strip Path.

Any other way is either limited by things like language installation of your OS (a German Windows version calls this "Meine Dokumente" or something like that) and the actually current user name or is at least platform specific such as Winapi calls (which for this are not trivial since the functions to retrieve this information work not directly with paths but with a binary structure called IDList) or specific path elements such as ~ for the Unix home directory, which LabVIEW may or may not support.

To set the hidden attribute you wont't get around using Winapi calls but there have been other posts here with VI libraries that do that already.

Rolf Kalbermatter

Message Edited by rolfk on 04-29-2006 12:02 PM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 3
(3,690 Views)