Net Use with Comments ?


Recommended Posts

Is there a way to use "net use" and be able to custom name the share?

For example you normally have this in My Computer for drive listings:

Groups on '192.168.200.214' (Y:)

Data on '192.168.200.252' (X:)

I want to be able to customize the name when using "net use" so it would be like:

Group Access Folder (Y:)

Finance Data on Terminal (X:)

I've been searching Google for a while and I thought there was a way to do this, but forgot.

The closest I can think of (that doesn't work) would be like:

net use x: \\192.168.200.214\groups "Group Access Folder"

Link to comment
https://www.neowin.net/forum/topic/612139-net-use-with-comments/
Share on other sites

Could you not just rename the drive once mounted?

1) Mount the drive. {net use}

2) Check its mounted. {if exist}

3) Rename the drive. {ren or rename i think, sorry I can check I'm not on a windows machine}

or am i thinking you're requiring something not immediately obvious? :blush:

SilverB.

Yep, TheReasonIFailed has a similar setup to my code. I use AutoIT to do this task - sometimes people want it done on machines that aren't part of a corporate network and I'll add it to run during startup.

Only difference is my code's a little different because I use AutoIT to do it. Nice and easy though, either way ;)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.