Yes, You can create a simple scheduled console application to be run on Prim using Windows scheduler, this app can check for the file existence, the below example for how you can check if the file URL is valid or not
private static bool IsFileExists(string fileUrl)
{
bool IsExists = false;
try {
HttpWebRequest request = WebRequest.Create(fileUrl) as HttpWebRequest;
HttpStatusCode StatusCode = ((HttpWebResponse)request.GetResponse()).StatusCode;
if (StatusCode == HttpStatusCode.OK)//file exist
IsExists = true;
else // file does not exist
IsExists = false;
}
catch
{ IsExists=false; }
return IsExists;
}
First you need to use System.Net add the below line
using System.Net;
If the storage location require authentication , you should handle the
authentication in your code.
To use this app to connect to SharePoint online
you will need to add those reference
Microsoft.SharePoint.Client
Microsoft.SharePoint.Client.Runtime
and you need to add below using lines
using Microsoft.SharePoint.Client;
using System.Security;
The below example shows how to connect to SharePoint online from console application
private static void SPConnect(string SiteUrl, string UserName, string Password)
{
ClientContext clientContext = new ClientContext(SiteUrl);
SecureString securePassword = new SecureString();
foreach (char c in Password.ToCharArray()) securePassword.AppendChar(c);
clientContext.Credentials = new SharePointOnlineCredentials(UserName, securePassword);
Web web = clientContext.Web;
clientContext.Load(web);
clientContext.ExecuteQuery();
}
For How Schedule Console Application Using Windows Scheduler check
here