01-31-2015 05:08 AM
Hai guys,
I am using LabVIEW 2012 sp1. So, in this how can i create subfolder to save an excel file generated using report generation blocks.
The excel file have to be stored in different folder according to the test operation.
Can anyone suggest me how can create subfolders during the execution of the VI.
regards,
PHANI
Solved! Go to Solution.
01-31-2015 05:24 AM
Hello tejaphani,
there is a Create Folder VI in the File IO/Advanced File Functions Palette.
Hope this is what you needed.
02-02-2015 02:15 PM
Let me just add that if you try to create a folder that is already there, you will get a duplicate path error (error code 10). I just clear that error after trying to create a folder.
02-03-2015 10:47 AM
That's one of the reasons I use the Create Dir if Not Exist from OpenG under the File I/O package. It can also make directories in directories, where the native function won't create a directroy, if the root of that doesn't exist.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-03-2015 12:54 PM
@Hooovahh wrote:
It can also make directories in directories, where the native function won't create a directroy, if the root of that doesn't exist.
Yes it does. I do it all the time with the native function.
Just verified with 2014. It created C:\temp\foo\bar\blah even though C:\temp\foo did not exist.
02-03-2015 02:11 PM
@crossrulz wrote:
Yes it does. I do it all the time with the native function.
Just verified with 2014. It created C:\temp\foo\bar\blah even though C:\temp\foo did not exist.
Oh sorry, thanks for the correction. I must have been thinking of some other function, or maybe it didn't always work like this. Tested in 2011 and it works there as well.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-03-2015 02:16 PM
Just tried in 8.2.1 with success. It does stick in my mind that this did not work at some point, just don't remember when the change happened. 8.0?