Hello
I am attempting to list all of the files in a specific directory using xp_cmd shell
EXEC master.dbo.xp_cmdshell 'DIR /B /A-D "\\[Servername]\G$\mssql data\mssql\backup"' returns "file not found", there are files in the folder backup
EXEC master.dbo.xp_cmdshell 'DIR /B /A-D "\\[Servername]\G$\mssql data"' returns a list of files in mssql data.
Is it an issue with the space between mssql [space] data?
Any thoughts on how to fix this gratefull received
Cheers