OMG! \:o During diner I remebered something. Late March I had this working and copied the executable to the workstation of one of my colleagues doing logistics so he could do some beta testing for me. Browsed the machine and found the executable I created just before my laptop got stolen. Monitored the temp folder when I fired up the original executable and there was my script. You can’t even imagine how much of a relieve this is.
The question in my original post is a part of a huge script compiled into an executable for creating shipping documents (pickup requests for our trucking company) and CMR forms for our logistics department. I'm so f-ing happy now! Below is the code I used to get it done. I guess it was a little less flexible than I thought

Lonk, Glenn,
Both nice solutions but due to other stuff this afternoon I did not get much time to play with it yet. Will do later this week. Thanks for the suggestions. Looks cleaner than what I did below.
 Code:
....
If Exist("D:\TempFiles\pickuprequest.html")
	Del "D:\TempFiles\pickuprequest.html"
EndIf
$rc = Open(1, "D:\Templates\Template_pickuprequest.html", 2)
$rc = Open(2, "D:\TempFiles\pickuprequest.html", 5)
$variables = "$$LabelDateTodayDate.Text", "$$TextBoxOurReference.Text", "$$LabelLoadingDate.Text", "$$TextBoxPackages.Text",
					"$$TextBoxWeight.Text", "$$ComboBoxPackaging.Text", "$$ComboBoxDescription.Text", "$$TextBoxSize.Text",
					"$$LabelRecipientText.Text", "$$TextBoxAttn.Text", "$$LabelAddressText.Text", "$$LabelZipcodeText.Text",
					"$$LabelCityText.Text", "$$LabelPhoneText.Text", "$$LabelCountryText.Text", "$$ComboBoxADR.Text",
					"$$ComboBoxStackable.Text", "$$ComboBoxSwapPackaging.Text"
			
$line = ReadLine(1)
While Not @ERROR
	While InStr($line, "$")
		For Each $variable in $variables	
			If InStr($line, $variable)
				$rc = Execute("$$variabletext = $variable")
				$line = Join(Split($line, $variable), $variabletext)
			EndIf
		Next					
	Loop
	$rc = WriteLine(2, $line + @CRLF)
	$line = ReadLine(1)
Loop
$rc = Close(1)
$rc = Close(2)
$ie = ReadValue("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE", "")
$shellline = $ie + " " + '"D:\TempFiles\pickuprequest.html"'
Run $shellline
....
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.