@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