VB Code:
  1. if System.IO.Directory.Exists("\\computer1\targetdirectory\") then
  2.     'copy file
  3. else
  4.     'dir doesnt exist
  5. end if