Now I got it clearer. I think it was the semicolons that confused me.

But please have look:
Code:
 http://home.c2i.net/jering/diverse 




Please download the 4 files:
AddPrint.kix
AddPrint2.kix
test.bat
test.kix

I`m not getting any error message. But when I run the script my printer does not install. Now I`m testing the script locally on my computer. I have connected a HP LaserJet 5L to the LPT port (It installed itself in Win XP, but I removed it to try to install it with the script)
First I tried with the AddPrint file, but realised that I must have the code with, so it should work like I`ve done it in AddPrint2.kix? Didn`t work for me though...


Any suggestions?


Edited by jering (2004-02-25 10:28 PM)