Page 1 of 1

Insert an exe on Init

Posted: Sat Apr 28, 2018 3:49 pm
by Silvio.Falconi
How insert a call to my exe ( c:\myfolder\myexe.exe) as init when the user open the Computer ?

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 ?

Re: Insert an exe on Init

Posted: Mon Apr 30, 2018 3:08 am
by Armando
Silvio:

Dai un'occhiata all'utilità di pianificazione di Windows (Google translator)

Take a look at the windows task scheduler (Programador de tareas)

Regards

Re: Insert an exe on Init

Posted: Mon Apr 30, 2018 8:36 am
by Silvio.Falconi
I wish insert it from my setup or Install programm made with fwh