Insert an exe on Init

Post Reply
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Insert an exe on Init

Post 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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Armando
Posts: 3278
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México
Been thanked: 3 times
Contact:

Re: Insert an exe on Init

Post 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
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Insert an exe on Init

Post by Silvio.Falconi »

I wish insert it from my setup or Install programm made with fwh
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply