ni.com is experiencing intermittent service disruptions.
Support teams are actively working on the resolution.
ni.com is experiencing intermittent service disruptions.
Support teams are actively working on the resolution.
11-20-2005 02:57 PM
11-20-2005 07:49 PM
2... Open the file for reading, then close it. If you get a FILE NOT FOUND error....
3... Do a LIST FILES for the directory in question, and search the returnedd list for the file you want.
All of these assume you know where the file should be, if it does exist.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-29-2005 07:43 PM
03-14-2007 02:08 PM
09-02-2010 02:33 PM
For other searchers out there:
in LabVIEW 2010 there is a Check if File or Folder Exists.vi
It is found under the functions palette Programming - File I/O - Adv File Functions
Not sure if this has UNC functionality.
09-02-2010 02:37 PM
@wildcatherder wrote:
For other searchers out there:
in LabVIEW 2010 there is a Check if File or Folder Exists.vi
It is found under the functions palette Programming - File I/O - Adv File Functions
Not sure if this has UNC functionality.
This is available at least as early as 8.6
07-02-2013 05:43 PM
Post has been dead for a few years so I will ask a question of my own, for the sake of not creating more threads on the discussion boards. Hope this is okay with the Original Post Author an everyone else. I have a system going that checks if a file already exists, if it does then it prompts the user to enter the time and date and appends that to the path. However, the group I work with would like it so that if the file already exists it will simply add a "_1" or "_2" etc.
I imagine I would take the file name, create a substring with only the file name and not all of the directories, and append a string with the "_number" to it. This sounds time consuming and somewhat inneffficient. Does anyone know of a better way to do it? Thanks a ton in advance!
07-02-2013 05:48 PM
There is no advantage to tacking a different question onto an old thread. I strongly suggest you re-post as a new thread.
07-02-2013 08:50 PM
Agreed about the new thread.
However, you don't need to do much for your problem. Just use one "Strip Path", change the string, then "Join Path".