For example, I give the path C: /DB.ABC. How do this file exist?
-------------------------------------------------- -------------
Declare @i int
Exec @ i = master.dbo.xp_cmdshell 'DIR C: /DB.ABC', NO_OUTPUT
IF @ i = 0 Print 'exists'
Else Print 'Non EXISTS'