I search to use 2 string in file "flag.txt" to use in variable in my script:

i have a file "flag.txt":
 Quote:
;variable page acceuil a remplacer
acceuilorigine ="http://www.google.com"
; variable de la nouvelle page d'acceuil
newacceuil ="https://mywork.com"


I want take a string "http://www.google.com" in variable $acceuilori and "https://mywork.com" in $newaccueil in my script for change start page of IE,Chrome and Firefox.

i have test with .bat but no result.

Can you help me?
i found this but i don't know how to use that:
 Quote:
IF Open(3, "d:\testflag\testflag.kix") = 0
$x = ReadLine(3)
WHILE @ERROR = 0
? "Line read: [" + $x + "]"
$x = ReadLine(3)
LOOP
Close (3)
ELSE
BEEP
? "Config file not opened, error code: [" + @ERROR + "]"
ENDIF


Edited by Crayven (2017-08-31 03:02 PM)
_________________________
It is at the foot of the wall that one sees best the wall