5

How I could check if network folder shared exists using batch script?

Example: \\10.10.10.1\folder1\folder2\shared_folder

4

if exist \\10.10.10.1\folder1\folder2\shared_folder echo It's here

1
  • Okey, I will try adn give you feedback :)
    – gedO
    Oct 4 '13 at 14:27
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.