I have a simple text file that I have created in a batch script that is a result of the reg export of [HKEY_CURRENT_USER\printers\Connections]
Next line trims it down just fine, to the \\server\share format, but leaves the "]" at the end, that I cannot seem to remove..... Been fighting it long enough, now Ill let yall take a stab.. Sure its simple, but this one eludes me for some reason.....
Goal is to get a text file with the following in it......
\\server\Xerox Phaser 6300N PS]
\\Computername\RICOH Aficio SP C222DN PCL 6]
To look like..... Just simply remove the last bracket.....
\\server\Xerox Phaser 6300N PS
\\Computername\RICOH Aficio SP C222DN PCL 6