该脚本是否有可能完成将dll自动复制到"system32"的工作? [英] Is it possible that the script will do the job to automatically copy the dll to "system32"?

查看:74
本文介绍了该脚本是否有可能完成将dll自动复制到"system32"的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

脚本是否有可能完成将dll自动复制到"system32"的工作?我的意思是,脚本将从自动运行运行,并且该脚本会将dll自动复制到system32.是否可以通过vbscript?或其他脚本即可.
另外,该脚本可以执行多项操作吗?我的意思是,一个:它将自动复制dll,第二个:它将运行一个exe文件,该文件是安装程序.

Is it possible that the script will do the job to automatically copy the dll to "system32"? I mean, the script will run from an autorun and that script will copy that dll to system32 automatically. Is it possible through vbscript? or other scripts will do.
another thing, can that script do multiple things? I mean, one: it will copy automatically the dll and second: it will run an exe file which is an installer.

推荐答案

当然,脚本可以执行此操作这一切,如果它在Windows脚本宿主CSCRIPT.EXE下运行.
请参阅:
http://en.wikipedia.org/wiki/Windows_Script_Host [ http://www.microsoft.com/资源/文档/windows/xp/all/proddocs/en-us/wsh_overview.mspx?mfr=true [ http://en.wikipedia.org/wiki/Windows_PowerShell [ http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx [ ^ ].

您可以使用对系统和编程模型的完全访问权限来开发自己的 cmdlets API.

—SA
Of course the script would be able do it all, if it is run under Windows Script Host, CSCRIPT.EXE.
Please see:
http://en.wikipedia.org/wiki/Windows_Script_Host[^],
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wsh_overview.mspx?mfr=true[^].

However, I''m not sure those manipulations with executable files make sense. I feel that if you shared your ultimate goal, you could get better advice.

Also, alternatively, I would recommend to use newer Windows PowerShell:
http://en.wikipedia.org/wiki/Windows_PowerShell[^],
http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx[^].

You could develop your own cmdlets using full access to the system and programming model using the API.

—SA


这篇关于该脚本是否有可能完成将dll自动复制到"system32"的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆