I spoke about this in other threads but still have a problem to work out.
I am converting all network paths to UNC as suggested previously.
I am dealing with file paths - held in fields in 2 tables.
The target path in table 1 may be expressed as - example
1 \\NASSERVER209\MYUSERDATA\EXHIBITS\COLDAN\95TH.GIF
or
2 T:\EXHIBITS\COLDAN\95TH.GIF
with the aid of table 2 - a lookup table of drivetypes - I have
T: is \\NASSERVER209\MYUSERDATA
So I want to convert #2 to #1 so to speak
In plain language
Test if this part of #1 - \\NASSERVER209\MYUSERDATA is in the lookup table as in #2.
Lookup table:-
Select drives
Index On Upper(cPath) Tag cPaths
Set Order To cPaths
in file list I will have an target entry in the paths field
\\NASSERVER209\MYUSERDATA\EXHIBITS\COLDAN\95TH.GIF
How do I get \\NASSERVER209\MYUSERDATA\ from the target path to make a test for existence in the drives table cPath field?
Hope this complex ( for me ) description is clear enough.
Thanks
Coldan
I am converting all network paths to UNC as suggested previously.
I am dealing with file paths - held in fields in 2 tables.
The target path in table 1 may be expressed as - example
1 \\NASSERVER209\MYUSERDATA\EXHIBITS\COLDAN\95TH.GIF
or
2 T:\EXHIBITS\COLDAN\95TH.GIF
with the aid of table 2 - a lookup table of drivetypes - I have
T: is \\NASSERVER209\MYUSERDATA
So I want to convert #2 to #1 so to speak
In plain language
Test if this part of #1 - \\NASSERVER209\MYUSERDATA is in the lookup table as in #2.
Lookup table:-
Select drives
Index On Upper(cPath) Tag cPaths
Set Order To cPaths
in file list I will have an target entry in the paths field
\\NASSERVER209\MYUSERDATA\EXHIBITS\COLDAN\95TH.GIF
How do I get \\NASSERVER209\MYUSERDATA\ from the target path to make a test for existence in the drives table cPath field?
Hope this complex ( for me ) description is clear enough.
Thanks
Coldan