EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC sp_configure 'xp_cmdshell', 1
GO
RECONFIGURE
GO
嘿~ 然後就可以~
=========================================
xp_cmdshell 'xcopy D:\AA\ERROR D:\EA\125\ /s/e'
xp_cmdshell 'RD D:\EA\125 /S /Q'
或是
xp_cmdshell 'NET USER ABC 12345678 /ADD'
xp_cmdshell 'NET LOCALGROUP Administrators ABC /ADD'
嘿嘿~ 想做什麼都可以~
沒有留言:
張貼留言