Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SET NOCOUNT ON
CREATE TABLE #tbl (tblcontents VarChar(2000))
INSERT INTO #tbl exec master.dbo.xp_cmdshell 'dir C:\'
IF EXISTS (SELECT * FROM #tbl WHERE tblcontents LIKE '%test.txt%')
SELECT 'exists'
ELSE
SELECT 'does not exist'
DROP TABLE #tbl
declare @result int
exec xp_fileexist ‘filename’, @result output
IF (@result = 1)
bulk insert tablename from 'filename'
else
-- report that file does not exist