Hey, anyone got any ideas of an easy way to set the following up with several .reg files:
This code works perfectly well, but I'm not so sure of how I can import more .reg files. I suppose it would be possible to just copy them all into the code 1 by 1 with the wshell.run "regedit /s location of file" but surely there is an easyier way?.Code:Private Sub cmdVideoStream_Click() Dim wShell As Object Set wShell = CreateObject("wScript.Shell") wShell.Run "regedit /s C:\Maintainer\Video Stream\User Name.reg" MsgBox "Files Copied", vbInformation + vbOKOnly, Me.Caption End Sub
thanks in advance




Reply With Quote