ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create folder error 7

Running LV2010 and I'm having trouble with creating some folders on my c: drive.  Attached is a pic of the code.  It thows and error 7 everytime it runs and it will not create the folders.  Any ideas?  Thanks.

0 Kudos
Message 1 of 7
(4,163 Views)

Looks like you are creating the folder on the root. Are you running Win Vista/7/8? UAC (User Account Control) can disable some programs from messing with the root directories. Try right-clicking LabVIEW and running as Administrator.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
Message 2 of 7
(4,157 Views)

@rickford66 wrote:

Running LV2010 and I'm having trouble with creating some folders on my c: drive.  Attached is a pic of the code.  It thows and error 7 everytime it runs and it will not create the folders.  Any ideas?  Thanks.


--> Close LabVIEW.

--> Right clicking LabVIEW shortcut and select "Run as administrator"

--> Now try running the same VI...


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 7
(4,154 Views)

If the file or directory does not exist, you will get error code 7 out of the File/Directory Info VI.  What I usually do for creating a folder is to just use Create Folder and ignore the error you get if it already exists (error code 10).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 7
(4,149 Views)

Ok, I think I'm all set.  I took both your suggestions.  I put the folders into the Users\Public folder and I created them without checking for their existance.  It's working now.  Thanks.

 

0 Kudos
Message 5 of 7
(4,126 Views)

rickford66 wrote:It's working now.  Thanks.

The only proper thanks is a Kudo Smiley Wink



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(4,116 Views)

Haha, no problem.

0 Kudos
Message 7 of 7
(4,114 Views)