Hello,
I know how to load and run files from the registry. But how would I go about having a *.exe file startup or load from the C:\windows\win.ini???
Thanks for the help.
Printable View
Hello,
I know how to load and run files from the registry. But how would I go about having a *.exe file startup or load from the C:\windows\win.ini???
Thanks for the help.
Okay here is what I did.
This will remove all other text in the file as well and i do not want that to happen. How do i get it to write only one line and leave the rest as is.
this is my code so far.Code:Private Sub Command2_Click()
Dim file%
Dim strFile As String
Dim strReplace As String
strReplace = "run=test.exe"
strFile = "C:\windows\win.ini"
file% = 1
Open strFile For Output As #file%
Print #file%, strReplace
Close #file%
End Sub