> CF 5 (sigh!!) on a Win 2003 Server box with IIS. The web 
> application needs to access a drive that has to be mapped 
> through the network from a different server using its IP 
> address. Now mapping a drive is easy enough using say 'net 
> use' or even doing it via the Windows 'Map Network drive...' 
> utility. However the account it maps the drive under has to 
> be the same as the account CF runs under, obviously. How do I 
> ensure that this drive is mapped everytime the server is 
> rebooted so that even though CF might start as a service 
> before the drive is mapped, it will see the drive as mapped? 
> I can use scheduled tasks to automate it, I guess. Sorry if 
> this is a bit confusing.

Well, first of all, you probably don't need to create a drive mapping at
all. For most things, you can just use the appropriate UNC path
("\servername\sharename"). However, for CF to be able to use drive mappings
or UNC paths, it needs to run within the context of an account with the
ability to access network shares. By default, CF runs as SYSTEM, which has
no rights to the network. So, you will need to run CF as a user with network
access rights (there's a technote on the MM site about this) and ensure that
this user has the appropriate rights to the share in question.

Then, if you still want to use a drive mapping, run a command prompt as that
user, and create a persistent drive mapping using the "net use" command -
for more information on that, type "net help use" at a command prompt.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194339
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to