我正在xp_cmdshell
从 SQL 查询编辑器执行以删除文件夹中的文件,但结果是两行;第一行包含一条消息"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"'