I am getting file not found on xp_cmdshell dir on local directory

前端 未结 2 2003
既然无缘
既然无缘 2021-01-27 11:58

Here is what I am trying to execute:

exec xp_cmdshell \'dir \"D:\\Data\\GS Products\" /AD /S /B\'

This works with every other folder on data th

2条回答
  •  有刺的猬
    2021-01-27 12:37

    Well, didnt get much help this time, but maybe I did it wrong..anyway, I had to add the SQL Service account pemissions to the folder I was doing the command on. Even though I was logged in with the top admin login, it did not work until I added the permissions to the folder/subfolders.

提交回复
热议问题