用sql语句可以进行修改文件名,删除文件

EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE; 

exec   master..xp_cmdshell   'ren   newfilename,oldfilename'   
exec   master..xp_cmdshell   'del   filename'   

EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 0;RECONFIGURE;-- 

发布了92 篇原创文章 · 获赞 15 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/tiandi_5000/article/details/104020892