Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VBScript Javascript DLL
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 20-Feb-12 9:43am
amabi113
Comments
Richard MacCutchan at 20-Feb-12 14:47pm
   
Which script are you referring to?
SAKryukov at 20-Feb-12 14:58pm
   
Most likely, WSH. I answered, please see.
--SA
Philippe Mori at 20-Feb-12 19:53pm
   
You should never write to system32. No excuse.
krumia at 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 at 21-Feb-12 8:17am
   
There is absolutely no reasons to do so.
krumia at 21-Feb-12 9:08am
   
Agreed!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 20 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100