You don't need a "mapped" drive to do this.. Drive mapping is really a
convention for the convenience of users. You should...

1)  On the server you are copying TO create "share" ... The share will have
a name (let's call him bob).
2) Create a USER on that same server ... Lets say "sam" with a password of
"iam" 
3) Give the USER on that server permissions to the files and folders (acl
permissions) and rights to the share (share permissions).
4) On the CF server create the same user (same username/password - sam/iam)
5) change the service permissions of all of the CF services you are using
(Cfapplication server, odbc server, search etc) to "login using sam/iam"...
Note, sam will need to have permissions on the web server to run as a
service. You can give sam local admin rights if you like - but there are
some implications to that. Suffice it to say that, while same can have very
restrictive permissions on the DB server, he must have some expanded
permissions on the web server because he's going to be doing more than just
copying files. He needs access to the cf files and other services on that
machine.
6) Once you have your services logging in as your new user you can copy your
file using a UNC path as in....\\db_servername\sharename\somefile.txt.

It's not as complicated as it sounds :)

-Mark
 

-----Original Message-----
From: Calvin Trinh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 20, 2007 11:09 AM
To: CF-Talk
Subject: Re: Execute a batch file with CFEXECUTE

I'm able to execute the batch file now but nothing happen. It seems like
Coldfusion server doesn't allow me to map a shared drive on another server.
What I want to do is to copy a file on the coldfusion server to my database
server.  I created a batch file to map the shared drive on my DB server and
copy the file over to my DB server.  Unfortunately, that didn't happen the
way I intended to be.  So, I just want to ask is it coldfusion not allowing
to map a drive in the code or am I missing something.  This is driving me
insane.

Thanks for the reply.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281674
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to