Home > Software engineering >  VBS error for help
VBS error for help

Time:09-21

Both Dim AutoRunProgram
 
The Set AutoRunProgram=WScript. CreateObject (" WScript. Shell ")
RegPath="HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion/Run/Ming "
The Type_Name="REG_SZ"
Key_Name="AutoRun"
Key_Data="E: \ kk. VBS"
'since the launch of the program, the full path to the file name
AutoRunProgram. RegWrite "RegPath Key_Data", ""," the Type_Name "
'since the initiator is added in the startup group autorun. Exe
MsgBox (" Success!" )


Display: line 8 characters 1
Invalid procedure call or parameter
Code 800 a0005

CodePudding user response:

Line 8:
AutoRunProgram. RegWrite "RegPath Key_Data", ""," the Type_Name "
The double quotes here, should be to get rid of it!
  • Related