Results 1 to 2 of 2

Thread: Win ini, / sysedit

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Posts
    143
    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.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Posts
    143
    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.

    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
    this is my code so far.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width