>>Well, try my code! Feel free to change the paths according to your setup. In this case p: is my default drive, and the path includes p:\data\
>>STRTOFILE('aaa','p:\data\xyz.xyz')
>>?FILE('p:\xyz.xyz')
>>?FILE('p:\data\xyz.xyz')
>>?adir(dummy,'p:\xyz.xyz')>0
>>?adir(dummy,'p:\data\xyz.xyz')>0
>>
>
>I ran your code (modified for my path) and got the expected results:
STRTOFILE('aaa','c:\temp\dir1\xyz.xyz')
>?FILE('c:\xyz.xyz')
>?FILE('c:\temp\dir1\xyz.xyz')
>NB! I have no p:\xyz.xyz file!
>
>I don't mean to question your results, but at the risk of asking the obvious, are you certain there is no p:\xyz.xyz? Not a hidden file or anything like that?
To be able to test my code, you must add two lines first
set defa to c:\
set path to c:\,c:\temp\dir1
STRTOFILE('aaa','c:\temp\dir1\xyz.xyz')
?FILE('c:\xyz.xyz')
?FILE('c:\temp\dir1\xyz.xyz')