DECLARE @CAMINHO CHAR(255)
DECLARE @RESULTADO INT
SET @CAMINHO='E:\CIMATRON\COM.RESULTADO.PDF'
EXEC MASTER..XP_FILEEXIST @CAMINHO, @RESULTADO OUTPUT
PRINT @RESULTADO
Sorry, this is the code i'm trying to run, without "DIR
DECLARE @CAMINHO CHAR(255)
DECLARE @RESULTADO INT
SET @CAMINHO='DIR E:\CIMATRON\COM.RESULTADO.PDF'
EXEC MASTER..XP_FILEEXIST @CAMINHO, @RESULTADO OUTPUT
PRINT @RESULTADO
Even when the file "COM.RESULTADO.PDF" doesnt exists it returns 1
I'm working with xp_fileexist function and it works very well.
My problem is when the files i need to search are something like "aa.cc.extension".
When the filename have more than one point the output is 1 even when the file doesnt exists.
How can i resolve this? Any sugestion?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.