Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

net use command to W2K share

Status
Not open for further replies.

nwoliver

MIS
May 17, 2005
65
US
I am attempting to use a "net use" command to make a share available to my production people. I would prefer to insert it into the network login script, but will settle for the user login script if necessary. I want it to map a drive letter. The script is as follows:

net use q: \\reprodesk\reprodesk_cfg /user:eek:ceuser /persistent:yes

There is no password for this share, however it prompts for a password, making it necessary to press the enter key to tell it so. Now I KNOW, that as sure as God made little green apples, that I will have a user or users who will cry about having to press the enter key one extra time when he/she/it logs in. Is there a better way to accomplish this, or, is there a way to enter a <enter> into the script string so that the activity will be transparent to the user?
 
I'm too stubborn to do the obvious thing.

Actually I did have a password on it, but that caused some type of problem that I thought would be solved by just not messing with one. I will go back and use a password and see, now that I have a working script, if it will work.
 
If you had a password, your line would look like this:

net use q: \\reprodesk\reprodesk_cfg /user:eek:ceuser passwordhere /persistent:yes

There is a way to replicate the pressing of the Enter key which involves a text file that contains nothing but a carriage return and clever use of the < symbol ....

-----------------------------------------------------
&quot;It's true, its damn true!&quot;
-----------------------------------------------------
 
if this is in the script then you are better to make persistent:no

if you have zen then it's better to do this as a pre and post on the application icon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top