I'm looking for a regex in C#.net to extract printers from a list in a script.
This is an example:
@set nr=2
@if not exist "%userprofile%\Version%nr%.txt" goto reload
@goto koppla
:reload
@echo skrivare>"%userprofile%\Version%nr%.txt"
@del "%userprofile%\zxy-*.txt"
@call skrivare.cmd
@exit
:koppla
@%connect1% \\%Print2%\Lund-M1
@%connect2% \\%Print2%\MAR-M1
@%connect2% \\%Print2%\MAR-M2
I would like to get the names (Lund-M1, MAR-M1, MAR-M2) of the printers in a array to foreach.
I really appreciate any help on this, my mind doesn't work with Regex.
Thank you in advance!
