Click here to Skip to main content
11,790,366 members (61,743 online)
Rate this: bad
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 8:43am
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.
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

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
0 OriginalGriff 315
1 ppolymorphe 219
2 Richard MacCutchan 158
3 Jochen Arndt 95
4 Maciej Los 90
0 OriginalGriff 1,114
1 Maciej Los 825
2 KrunalRohit 686
3 CPallini 611
4 ppolymorphe 610

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.1 | 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