c# - Check if file exists on remote server and various drive -
c# - Check if file exists on remote server and various drive -
we have aspx page needs check if video files exist on our video server , display link if file exist. however, our videos not stored on c drive, on d drive instead.
i have tried
system.io.file.exists(@"http://ourvideoserver/pcode/videofile_name.mp4") , system.io.file.exists(@"\\ourvideoserver\\d:\\pcode\\videofile_name.mp4")
the lastly 1 taking wild guess
and cannot figure out how check files on remote server on different drive c.
could point me in right direction on how check in d drive of remote server
in unc paths, drives represented $. is, d$. seek this:
system.io.file.exists(@"\\ourvideoserver\d$\pcode\videofile_name.mp4")
c# asp.net remote-server file.exists
Comments
Post a Comment