07-30-2008 05:19 PM
07-30-2008 05:20 PM
07-30-2008 07:49 PM - edited 07-30-2008 07:49 PM
07-30-2008 11:57 PM
JoeLabView wrote:
04-09-2013 12:48 PM
Hi-
This thread is still relevant 5 years later...
So, if I do want to have my base path as C:\dir1\ instaed of C:\ what shall I do?
Thanks
DaniDin
04-09-2013 01:16 PM - edited 04-09-2013 01:17 PM
This
EDIT: Just noticed I used base1 instead of dir1, but you should get the point.
04-09-2013 01:33 PM
Crossrulz-
Your suggestion to specify a subdirectory "base1" in the base path argument as: C:\base1 does not work. See the 2008 entry by altenbach. When doing that, the intended base1 subdirectory ends up being the prefix of the filename.
So, instead of obtaining: "C:\base1\filename.txt", I end up with: "C:\base1filename.txt".
04-09-2013 01:43 PM
The goal can be accomplished by simply concatenating the sub folder "base1\" as a constant before the filename.
So the base path is still "C:\", then in the second argument of the "Build Path" function, concatenate "Base1\ with "Filename", and with ".txt"
04-09-2013 01:44 PM - edited 04-09-2013 01:45 PM
@DaniDin wrote:
Crossrulz-
Your suggestion to specify a subdirectory "base1" in the base path argument as: C:\base1 does not work. See the 2008 entry by altenbach. When doing that, the intended base1 subdirectory ends up being the prefix of the filename.
So, instead of obtaining: "C:\base1\filename.txt", I end up with: "C:\base1filename.txt".
Did you run the crossrulz post? It works as expected returning c:\base1\filename.txt The comment altenbach said was that you may run into issues if you just use concatenate string instead of build path.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-09-2013 01:51 PM
@DaniDin wrote:
The goal can be accomplished by simply concatenating the sub folder "base1\" as a constant before the filename.
So the base path is still "C:\", then in the second argument of the "Build Path" function, concatenate "Base1\ with "Filename", and with ".txt"
You are making life too difficult. Trust me. The code I gave you will do exactly what you want.