Hi,
Is there a way to use the xp_cmdshell in SQL Server to count the number of files in a folder on a different server? I have a process that watches a folder on a different server and sometimes it fails and the files keep accumulating. I would like to create a job in SQL Server where I could use xp_cmdshell to get a count of the number of files that are in that folder on a different server and send out an email if the number of files in the folder exceed a specified number. Is this possible?
Thanks
Is there a way to use the xp_cmdshell in SQL Server to count the number of files in a folder on a different server? I have a process that watches a folder on a different server and sometimes it fails and the files keep accumulating. I would like to create a job in SQL Server where I could use xp_cmdshell to get a count of the number of files that are in that folder on a different server and send out an email if the number of files in the folder exceed a specified number. Is this possible?
Thanks