in reply to Windows Net Use
The output of "net use" is generally bad to parse. If your Windos is new enough (XP Pro) to include WMIC, the output of
should contain all that you need, and is much easier to parse. Only problem would be share names with commas in them, but for a reason unbeknownst to me, these are much rarer than those with embedded spaces :-)WMIC NETUSE LIST FULL /FORMAT:CSV
There are several such command line utilities whose output is inconsistent or not parseable without mind reading capabilities. In such cases one should look for alternative sources of input.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Windows Net Use
by Anonymous Monk on Mar 28, 2013 at 11:22 UTC | |
by marto (Cardinal) on Mar 28, 2013 at 11:34 UTC | |
by soonix (Canon) on Mar 28, 2013 at 16:48 UTC |
In Section
Seekers of Perl Wisdom