How I could check if network folder shared exists using batch script?
Example: \\10.10.10.1\folder1\folder2\shared_folder
How I could check if network folder shared exists using batch script?
Example: \\10.10.10.1\folder1\folder2\shared_folder
if exist \\10.10.10.1\folder1\folder2\shared_folder echo It's here
A another option that will keep your script from hanging on a down system:
ping -n 1 %1 >nul && if exist \\10.10.10.1\folder1\folder2\shared_folder echo It's here