> Type "runas" at a command line for more information.

Thanks Dave, i think this might work without executing a batch file.
As soon as you enter the params, the next line asks for a password,
any idea how to automate this?

ie "Press Enter" and the execute a copy.

Thanks,
Joe Eugene
  -----Original Message-----
  From: Dave Watts [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 09, 2004 7:54 PM
  To: CF-Talk
  Subject: RE: Switch JVM Execution Policy on Runtime

  > I have a class to write files to multiple servers, works well
  > standalone. However when i execute this from ColdFusion, i get
  > a "File Access Error".
  >
  > It seems like the account CF uses (IUSER) doest have enough
  > permissions to write files to other servers..

  By default on Windows, CF uses SYSTEM, not IUSR.

  > i have tried batch execute and Runtime execute.. both dont
  > work with CF.
  >
  > Is there a way to tell the JVM to run this application using
  > a different Windows NT account?

  I don't know of anything you could set in the JVM specifically, but in
  Windows, what you're trying to do requires an account with the right to
  impersonate other accounts. The SYSTEM account, representing the operating
  system itself, does possess this right. If you can do this from the
command
  line, you could use the "Run As" service to run your batch file as the
  desired user. Type "runas" at a command line for more information.

  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
  voice: (202) 797-5496
  fax: (202) 797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to