Hi Graham
Yes it works perfect now, all names are displayed.
The only problem is scanning network path. Local path are wotking perfect.
I just checked.
1) when I have disk p: - all works
but
2) when I use \\server_name\folder (his some path as mapped in case 1) to p:) - then script is listening files from disk where script is placed instead of network path.
I think after changing command
cd /d e:
to
dir \p \\server name\folder
it is also listing files from disk on which script was running.
I just checked by adding pause here:
>> %LogFile% echo End of LOG
pause
goto :EOF
:ProcessEach
on CMD command I can see it is listing my network files so it see link and files listed are correct form link \\server name\folder
Just entries send to the log are not correct and come from drive where script was running.
If that can help... maybe you can have any idea
![Smiley :)](https://www.computerhope.com/forum/Smileys/classic/smiley.gif)
BR
Michal