08-13-2013 02:00 PM
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.
08-13-2013 02:05 PM
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.
08-13-2013 02:07 PM
@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...
08-13-2013 02:15 PM
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).
08-13-2013 04:20 PM
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.
08-13-2013 04:38 PM
rickford66 wrote:It's working now. Thanks.
The only proper thanks is a Kudo
08-13-2013 04:40 PM
Haha, no problem.