Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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.
Posted
Comments
Richard MacCutchan 20-Feb-12 14:47pm    
Which script are you referring to?
Sergey Alexandrovich Kryukov 20-Feb-12 14:58pm    
Most likely, WSH. I answered, please see.
--SA
Philippe Mori 20-Feb-12 19:53pm    
You should never write to system32. No excuse.
krumia 20-Feb-12 23:33pm    
You could if you're running as admin. However, copying an alien DLL to system32 doesn't look innocent to me :)
Philippe Mori 21-Feb-12 8:17am    
There is absolutely no reasons to do so.

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900