FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Insert an exe on Init
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Insert an exe on Init
Posted: Sat Apr 28, 2018 03: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 (fw): Select all Collapse
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
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Insert an exe on Init
Posted: Mon Apr 30, 2018 03: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Insert an exe on Init
Posted: Mon Apr 30, 2018 08: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 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

Continue the discussion