> Here I am thinking that today would be a breeze... So, my new > problem is I'm trying to FTP a file to our main frame. <cfftp> > doesn't quite do the trick because I have to pass some special > commands to the main frame. I'm thinking, no problem, I'll just > use <cfexecute> to execute a batch file that does my ftp process. > I first test everything on the command line and everything works > fine. I then create my cfm page calling my batch file via > <cfexecute> - it doesn't work. I've checked file paths, names, > etc. and everything looks fine. > > I then talk to a fellow programmer and they say that if the > cf services aren't running under the administrator account, you > might not be able to run .bat files. I checked the services and > sure enough, all cf services are running under the 'local system > account'. I then talked to the network admin about changing the > login account and that was quickly denied. > > So, what account does everybody out there run their cf services > under? It seems to me that if you lock your servers down and know > at least a little bit about security, there shouldn't be a problem.
Most people, like you, run their CF service as SYSTEM. The SYSTEM security context is essentially an administrator account, with no Windows Networking permissions to other machines. You should be able to run batch files using CFEXECUTE with CF running as SYSTEM, so I don't think that's your problem. However, when you do run batch files, SYSTEM may not have the same path and environment information as you do when you test it yourself from the command line. As an alternative to using the command-line FTP client with CFEXECUTE, you might use the TCPClient COM object available from http://www.intrafoundation.com/, which generally works well for any kind of TCP/IP connectivity needs you might have. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Macromedia ColdFusion 5 Training from the Source Step by Step ColdFusion http://www.amazon.com/exec/obidos/ASIN/0201758474/houseoffusion ------------------------------------------------------------------------------ To unsubscribe, send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com
