There is a Windows NT 4.0 Resource Kit utility named "autoexnt" can be used to ensure the redirector is started and the connection is made to the filer at boot up.
You must have a copy of the Windows NT 4.0 Resource Kit, and the companion CD. Autoexnt is installed by simply copying autoexnt.exe and servmess.dll from the \ntreskit directory to the Systemroot\System32 directory. Create a batch file with the commands to map a drive to the Filer and save it as "autoexnt.bat" in the Systemroot\System32 directory. Type "instexnt install" at the command prompt to install the service. Use the /interactive switch if you want to see the commands executing in a command window during boot time ("instexnt install /interactive").
For example:
D:\ntreskit.40>instexnt install /interactive CreateService AutoExNT SUCCESS with InterActive Flag turned ON.
Finally, to configure the AutoExNT service to run when you start your computer (during boot)
1. Double-click Services in Control Panel. 2. In the Services list, click AutoExNT. 3. Click Startup and, in the Startup Type box, click Automatic. 4. Choose OK.
Example autoexnt.bat:
d:\winnt\system32\net start workstation d:\winnt\system32\net use t: \toaster\home
If you log in, the drive is already mapped and shows up in Windows Explorer. You cannot "disconnect" the drive mapping from within explorer which insulates it from user error a bit as well.
Good luck!
John Phillips Network Appliance
-----Original Message----- From: Jaye Mathisen [mailto:mrcpu@internetcds.com] Sent: Thursday, April 08, 1999 12:53 PM To: toasters@mathworks.com Subject: Ridiculously easy question...
I'm just starting to use CIFS, and everything works fine, except one minor problem...
I would like NT (4.0SP4, if it matters), to attach a drive on system startup, rather than having to be logged in...
For various reasons, I cannot use UNC paths in my application, so I need to map the drive when the system boots, with a username and password...
Is this possible?
My filer is running 4.3.4, but I think I'm going to upgrade tonight to 5.2.1...