E' possibile personalizzare uno script del genere cambiando magari i colori del box, oppure i font delle scritte, se si può inserire qualche altro comando particolare (un simbolo strano per esempio) vanno bene pure quelli.
Grazie
- Codice: Seleziona tutto
Option Explicit
Set ws = WScript.CreateObject("WScript.Shell")
Dim ws, t, p1, p2, n, g, con, cg
Dim itemtype
p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\"
n = ws.RegRead(p1 & "RegisteredOwner")
g = ws.RegRead(p1 & "RegisteredOrganization")
t = "Utilità per il cambio nome e società di Windows"
con = InputBox("Inserisci il nuovo proprietario e premi Ok", t, n)
If con <> "" Then
ws.RegWrite p1 & "RegisteredOwner", con
End If
cg = InputBox("Inserisci la nuova società e premi OK.", t, g)
If cg <> "" Then
ws.RegWrite p1 & "RegisteredOrganization", cg
End If
MsgBox "Cambio dati effettuato." & vbcr & vbcr & "by MegaLab.it", 4096, "Finito"