Listing down the directories in the server

Below is the command used to list down the directories in the server.

exec master..xp_cmdshell 'dir'


aa.png