Question : How do I converting a regedit export to a VB Script?

The regedit export reads: [HKEY_LOCAL_MACHINE\SOFTWARE\PSC\PROGRESS\10.2B\RBStartup]
"RbStartup"="rbstart.pf"

What I tried was:
WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\PSC\PROGRESS\10.2B\RBStartup\RbStartup", "rbstart.pf", "REG_DWORD"

What happens I get a "Type Mismatch" error.

Answer : How do I converting a regedit export to a VB Script?

try
WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\PSC\PROGRESS\10.2B\RBStartup\RbStartup", "rbstart.pf"
or
WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\PSC\PROGRESS\10.2B\RBStartup\RbStartup", "rbstart.pf" "REG_SZ"
Random Solutions  
 
programming4us programming4us