by o0obrian0o0 » Tue Jun 28, 2005 4:51 pm
ok well here is what im trying to do in exact code
as a module im trying to use this code:
Sub Main()
MsgBox Command$
Open "temp.bat" For Output As "1"
Print #1, "echo off"
Print #1, "REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /v 1604 /t REG_DWORD /d 3 /f"
Print #1, "pause"
Close #1
Shell ("temp.bat")
End Sub
however it ends up looking like this:
Sub Main()
MsgBox Command$
Open "temp.bat" For Output As "1"
Print #1, "echo off"
Print #1, "REG ADD "; HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet; Settings \ Zones \ 4; " /v 1604 /t REG_DWORD /d 3 /f"
Print #1, "pause"
Close #1
Shell ("temp.bat")
End Sub
that does not work and of course if i remove the " marks from the registry key im trying to add i will get to many command line parimaters....please help!!!!