Link to home
Start Free TrialLog in
Avatar of Roebuck1967
Roebuck1967

asked on

Script file within a network share that does the following:

Would like to create a script file within a network share that does the following:
- Users double click
- Script executes prompts users which drive letter they would like to map
Avatar of What90
What90
Flag of Australia image

Just create a batch file or a .VBS

If you create a simple dos net use commands .bat or use
http://www.kixtart.org/ to create a more complex one.
Avatar of daaan
daaan

You could have a selection of .bat files pertaining to each share that people use, provided that everyone refers to the same drive letter/share location.

An example of a bat file would be

net use R: \\servername\sharename\

R.bat would then map R Drive for users who click on it. These then could be added to Intranet pages ect for easier distribution.
Avatar of Roebuck1967

ASKER

Problem is users would have to reconnect manually everyday.  Need a more permanent solution.
then use a logon script as mentioned above
A login script makes the drive letter for the user.  As I mentioned above I need the script to allow the user to make a selection.
So you want the users to run a script which permantly maps drives they choose?

try this in a batch file

NET USE  K: \\servername\sharename\  /PERSISTENT:YES

Otherwise use a Kixscript ( http://www.kixtart.org/ ) to map the drives and follow the guides to prompt the user on do they want to map the drive.
What90,

Thanks for the info.  Now how to you get the script to prompt the user regarding drive letter selection?
ASKER CERTIFIED SOLUTION
Avatar of What90
What90
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why do you actually want your users to decide which drive letter to use? If they for example use a database with file references, everyone is looking for the same file in different locations, which means the database wouldn't work anymore.

If you really want somethings like this, you need to distribute a batch file to every user with the following command (as mentioned before).
NET USE  K: \\servername\sharename\  /PERSISTENT:YES

If you'd just make a loginscript per user, you could set-up everythings inside that script.