use of net use

M

MM User

Hi,

I keep getting an error for:

net use d:\\hpserver\folder 1 for data /user:datausers

also how do I prompt for a password using the astrix - not usre where to
place this, I've looked in the help?

Thanks
 
S

Steve Winograd

Hi,

I keep getting an error for:

net use d:\\hpserver\folder 1 for data /user:datausers

also how do I prompt for a password using the astrix - not usre where to
place this, I've looked in the help?

Thanks

There must be a space after "d:".

If the shared folder's name includes spaces, enclose the computer and
share names in double quotes.

To prompt for a password, put an asterisk before the user name.

With those changes, the command would be:

net use d: "\\hpserver\folder 1 for data" * /user:datausers
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
M

MM User

Thanks Steve that's what I was after,

when I prompt for a password is it possible to have a box pop-up at the
moment the 'command box' waits for user to type the password 'command box' -
the user does not know if he typing as nothing is shown?


Regards
 
S

Steve Winograd

Thanks Steve that's what I was after,

when I prompt for a password is it possible to have a box pop-up at the
moment the 'command box' waits for user to type the password 'command box' -
the user does not know if he typing as nothing is shown?

Regards

You're welcome. The "net use" command doesn't have a way to create a
pop-up box. There might be a Windows command or a shareware program
that can do it. I suggest that you post a message asking about it in
a Windows XP general or scripting news group.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
M

MM User

Thanks Steve!

Steve Winograd said:
You're welcome. The "net use" command doesn't have a way to create a
pop-up box. There might be a Windows command or a shareware program
that can do it. I suggest that you post a message asking about it in
a Windows XP general or scripting news group.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top