Insert an exe on Init

Insert an exe on Init

Postby Silvio.Falconi » 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

Code: Select all  Expand view
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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7057
Joined: Thu Oct 18, 2012 7:17 pm

Re: Insert an exe on Init

Postby Armando » Mon Apr 30, 2018 3:08 am

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
Armando
 
Posts: 3222
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Insert an exe on Init

Postby Silvio.Falconi » Mon Apr 30, 2018 8:36 am

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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7057
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests