我正在从SQL查询编辑器执行xp_cmdshell
以删除文件夹中的文件,但结果是获得两行;第一行包含消息"The system cannot find the file specified."
,第二行包含"NULL"
我尝试过以下命令:
EXEC xp_cmdshell 'DEL C:\Documents and Settings\Administrator\Desktop\rough folder\hi.txt'
EXEC xp_cmdshell 'DEL "C:\Documents and Settings\Administrator\Desktop\rough folder\hi.txt"'