Hmm

Sorry, Glenn...i am a totaly newbie to that :-(

if i have an ini file, i need sections like [Sektion1], [Sektion2]..etc, right?

But i dont want thism because of better Import into Excel

I have an ascii file, created with this

 Code:
IF Open( 3 , "$Logfile" , 5 ) = 0
     $x = WriteLine( 3 , @WUserid + ";" + @Wksta + ";" + @IPaddress0 + ";" + $Mac + ";" + $DHCP + ";" +  @ProductType + ";" + "Word " + $WordProductID + ";" + "Excel " + $ExcelProductID + ";" + "Outlook " + $OLProductID  + @CRLF)
	 Close(3)


That gives me a file like this

 Quote:
User1;PC1;192.168.1. 64;00:1F:1D:1F:1A:11;True;Windows XP Professional;Word 2003;Excel 2003;Outlook 2003
User2;PC2;192.168.1. 86;00:02:22:AC:F4:48;True;Windows 2000 Professional;Word 2003;Excel 2003;Outlook 2003
User1;PC1;192.168.1. 64;00:1F:1D:1F:1A:11;True;Windows XP Professional;Word 2007;Excel 2007;Outlook 2007
User3;PC3;192.168.1. 46;00:25:AC:D4:22;True;Windows 2000 Professional;Word 2003;Excel 2003;Outlook 2003


You see, User1 is duplicate...want i want to do is, that the scrip searches for Userid or Wkst an overwrites the line. in this example, the script should search for User1 and overwrites the founded line

Thanx in advance \:D


Edited by Kaiminator (2007-10-05 01:43 PM)