Hi,
I need to check if a file exists, if not, I want to refer to the text in another file.
My problem is that my file is refered to by variables at the middle and end of the path. In all examples that I have found on this website, the variables seem to be at the begining of the path.
My pathname looks like this:
C:\MyApp\<Student_ID>\Q<L01>.txt
In this example:
C:\MyApp is the initial pathname
<Student_ID> is a folder based on the users ID
Q is a standard letter in front of the variable <L01> to form a text filename. ie QLab.txt, QLac.txt ,etc. This is used to differentiate it from another text file based on the same variable, with an "X" prefix. i.e. XLab.txt, XLac.txt, etc.
If typed in, and if this was not reliant on variables, the final path would look like:
C:\MyApp\Joe_Soap\QLab.txt
How do I insert this path into a "FileExists" Opusscript?
Regards
Neil