Cari Amici,
questo è il mio primo messaggio.
Volevo chiedervi come posso creare una chiave di registro REG_SZ tramite uno script VBS.
Ho provato a scrivere così ma non va
Option Explicit
On Error Resume Next

Dim WSHShell, n, p, itemtype, MyBox
Set WSHShell = WScript.CreateObject("WScript.Shell")

p = "HKCU\Software\TechSmith\SnagIt\8\Registration Key"

itemtype = "REG_SZ"

n = WSHShell.RegRead (p)
errnum = Err.Number

if errnum <> 1 then

WSHShell.RegWrite p, 0, itemtype
End If

If n = 7EA5AM7Z4HZDQ5BMUC2VSEA5E Then
WshShell.RegWrite p, 7EA5AM7Z4HZDQ5BMUC2VSEA5E, itemtype
MyBox = MsgBox("xxx", 64, "xxx")
End If

Set WshShell = Nothing
Come posso farlo funzionante?
Grazie.