Insert an exe on Init
Posted: Sat Apr 28, 2018 3:49 pm
How insert a call to my exe ( c:\myfolder\myexe.exe) as init when the user open the Computer ?
I thinked to make
But I thiink it can go for windows xp but for win seven and win 10 ?
I thinked to make
Code: Select all | Expand
oText := TTxtFile():New( "C:\WINDOWS\WIN.INI" )
IF oText:Open()
oText:goto(2)
IF !UPPER(oText:ReadLine()) = "LOAD=C:\WINDOWS\myprog.EXE"
oText:insline( "LOAD=C:\WINDOWS\myprog.EXE" )
ENDIF
oText:Close()
ENDIF
But I thiink it can go for windows xp but for win seven and win 10 ?