melvern
melvern

Reputation: 33

find net use with batch

Hi just wanted to know if its possible to create a txt file listing all net use path

Upvotes: 0

Views: 1204

Answers (2)

Gerrie Schenck
Gerrie Schenck

Reputation: 22368

Is this what you need?

net use > c:\temp\test.txt

Upvotes: 1

PCurd
PCurd

Reputation: 431

You can do

net use > c:\netusepaths.txt

and that will give you the paths in a text file (just pick the filename and location you want).

If you want just the lines with the paths on (rather than the whole output of net use) try

net use | find "OK" > c:\netusepaths.txt

Upvotes: 3

Related Questions