not to map a network drive, simply to open it. i know it seems strange. but ill try explain better.
i have a network drive 'U:'
in the root of that drive is an autorun which produces an onscreen message box. currently it jsut says 'test message' but in the future will be a disclaimer. as you have probably worked out that i am weanting a disclaimer to pop up when entering a specific folder/network drive.
i got the message box to work easy and then you just press yes, i was expecting then for the u: drive to open but it doesnt. so i was going to intergrate a command line into the autorun/batch file/ that opens the network location after it runs the message.
hope this helps.
Main Topics
Browse All Topics





by: ashwin_kumar525Posted on 2009-03-04 at 05:14:08ID: 23794347
Are you talking to map a network drive?
rName <password>
@echo off
net use U: /d
net use U: \\Servername\Sharename /user:DomainName\DomainUse
explorer U:
You either provide the password in plain text as part of script or if you leave the password blank, then you will be prompted for providing the password.
Save the above commands as batch file and place it in the start folder for your profile.