Hi, I am using the below command to download the file from FTP. But i want to ensure if there is no files exist we need to alert a TEAM saying its not there.How can we achieve this ??
SET @cmd = 'del E:\ARK\AT\cmds.txt /Q' EXEC master..xp_cmdshell @cmd
SET @cmd = 'echo username_XXX>> E:\ARK\AT\cmds.txt' EXEC master..xp_cmdshell @cmd
SET @cmd = 'echo password_YYY >> E:\ARK\AT\cmds.txt' EXEC master..xp_cmdshell @cmd