Click here to Skip to main content
11,924,800 members (56,874 online)
Rate this:
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
Richard MacCutchan 20-Feb-12 14:47pm
Which script are you referring to?
SAKryukov 20-Feb-12 14:58pm
Most likely, WSH. I answered, please see.
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.
krumia 21-Feb-12 9:08am

1 solution

Rate this: bad
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:[^],[^].

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:[^],[^].

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


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

Advertise | Privacy | Mobile
Web02 | 2.8.151125.3 | Last Updated 20 Feb 2012
Copyright © CodeProject, 1999-2015
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