Hello,
I dug a bit further and I discovered it has nothing to do with symbols or path length.
I tried setting the first path to inner subdirectories and execute less lines.
a. If the initial path is D:\Samples\3000°C\DSC1\, and I run the code up to TempFol$ =; , the text returned is correct:
4 subfolders found
D:\Samples\3000°C\DSC1
DSC1
0 subfolders found
D:\Samples\3000°C\DSC1\0.50%
0.50%
b. If I take the initial path 1 step backwards, that is, D:\Samples\3000°C\, and try to run the code up to dscFol$ =; , I get the same result as my first post:
4 subfolders found
D:\Samples\3000°C
3000°C
4 subfolders found
D:\Samples\3000°C\DSC1
DSC1
0 subfolders found
D:\Samples\3000°C\DSC1 ---This is incomplete; should be D:\Samples\3000°C\DSC1\0.50%
0.50% ---This is correct
I thought maybe there was a maximum of strings you could concatenate in a path, but I have used 3 appended strings before with no problem whatsoever.
On the other hand:
c. If I set the initial path to D:\Samples\3000°C\DSC1\0.50%\, and simply write:
string strPath$ = "D:\Samples\3000°C\DSC1\0.50%\";
path$= strPath$;
type path$;
D:\Samples\3000°C\DSC1 ---This is incomplete; should be D:\Samples\3000°C\DSC1\0.50%
Is there anything obvious I'm missing here? Why is it not working?