xp_cmdshell how to put folders that have space?

0

I put a folder in the terminal

exec xp_cmdshell 'dir b:\teste\*xlsx*'
exec xp_cmdshell 'dir b:\teste teste\*xlsx*'

When I add space it does not find. It is not possible to change the name of all folders that have space because there are several folders to find the path to where I want all the files, how can I make it identify those folders that contain the space character without error?     

asked by anonymous 16.05.2018 / 17:41

0 answers