#189709 - 2008-09-17 12:55 PM
Re: more speed?
[Re: Mart]
|
Glenn Barnas
KiX Supporter
Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
|
While the size of the .reg files can impact speed to some degree, realize that every time you Shell, you start up a new environment, possibly wait for CMD.exe to load and initialize, load and run the command, process the data, etc... The point is, there's significant overhead processing Shell commands instead of using built-in commands and functions.
If your reg files are managing printers, native commands would likely be much faster. If they are generic registry data, Kix has a WriteValue command for single value writes, and LoadHive and LoadKey to natively load registry data from a file.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
Top
|
|
|
|
#189751 - 2008-09-19 11:51 AM
Re: more speed?
[Re: Jlmartinez]
|
edjekroketje
Fresh Scripter
Registered: 2008-09-19
Posts: 20
Loc: Amsterdam, the Netherlands
|
This is an interesting topic. Since we can do with a speed improvement in our script ourselves, i have opened a similar topic myself. Will try to help here. I can see that the addprinter command works fine. Also the delprinter to disconnect printers if not neccasary. I'm wondering if that will work with wildcards as well?
Edited by edjekroketje (2008-09-19 04:36 PM) Edit Reason: Possible violation of forumrules
_________________________
Still thinking about a good signature
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 496 anonymous users online.
|
|
|