I need to deploy a peice of software to 200+ which has a unique .reg
file thats been generated for each user.

What I need to do is somehow execute this regfile on the users machine
so that it creates the appropriate entry for them..........

Can I silently execute a reg file.


Thanks in advance..............

Re: Script to execute a .reg file by Dave

Dave
Wed Feb 22 22:21:27 CST 2006

To import silently;
regedit /s D:\filename.reg

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Star" wrote:
|I need to deploy a peice of software to 200+ which has a unique .reg
| file thats been generated for each user.
|
| What I need to do is somehow execute this regfile on the users machine
| so that it creates the appropriate entry for them..........
|
| Can I silently execute a reg file.
|
|
| Thanks in advance..............
|



Re: Script to execute a .reg file by Fosco


Re: Script to execute a .reg file by Star

Star
Thu Feb 23 04:20:32 CST 2006

Thanks for the reply...................

Now what I need to do is have a script which reads a two coloumn csv
file. What I need it to do is read the search the first column and find
the matching name (assume I provide a vlaue) then read the next row for
the name.

Basically the file is a table that maps names to phone
numbers.............

What I need is to search for the name and then return the phone number
corresponding to the name...........

Can anyone point me to some sample scripts............
please..................

Many thanks


Re: Script to execute a .reg file by tstsh

tstsh
Thu Feb 23 12:07:37 CST 2006

Const ForReading = 1
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile _
("Your file here", ForReading)
Do Until objTextFile.AtEndOfStream
strNextLine = objTextFile.Readline
arrServiceList = Split(strNextLine , ";")
intLineFinder = InStr(strNextLine, wshnetwork.username)
If intLineFinder <> 0 Then
Wscript.Echo "Server name: " & arrServiceList(0)
wscript.echo Mid(arrservicelist(0),15)

End If


Loop


thie file should point you in the right direction.


the file that is used to seed this is a two collumn comma delimited
file.