|Guys thanks for all your help so far.|
Its still not 100% though. I'm guessing because the file I'm using to import the IP address into has invalid characters or something??
So here is a more detailed explanation of what I'm trying to do.
I have two files.
File a.txt contains a single line of an IP address, which can be 10.50.45.10, for example.
Then I have another txt file, b.txt, containing the line:
rundll32 printui.dll,PrintUIEntry /if /b "Lexmark T654" /f C:\FrontCounterPrinter\LMACLC40.inf /r "IP_10.50.33.7" /m "Lexmark T654" /Z
Where it has IP_10.50.33.7, I need that replaced with the IP from a.txt. So it should read:
rundll32 printui.dll,PrintUIEntry /if /b "Lexmark T654" /f C:\FrontCounterPrinter\LMACLC40.inf /r "IP_10.50.45.10" /m "Lexmark T654" /Z
I hope this makes better sense, I appreciate all your help so far.