Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21358

Startup Helpl

$
0
0
For some reason the startup value in my computer does not match the value I create it as when I run the code...
Code:

Dim Reg As Object
Set Reg = CreateObject("wscript.shell")
Reg.RegWrite "HKCU\Software\Microsoft\windows\CurrentVersion\Run\test", "C:\test.exe", "REG_SZ"

The startup value in MsConfig says "Project1" instead of "test". How can I fix this?

Viewing all articles
Browse latest Browse all 21358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>