When I run the following code notepad doesn't pop up. I get a timeout error. If
I set the timeout to 0 nothing occurs at all.
The coldfusion service is running under it's own account with permissions on
the network.
<cfexecute name="C:\WINNT\System32\notepad.exe" timeout="2"></cfexecute>
Any ideas?
Thanks.
LL@Work - 31 Mar 2007 00:54 GMT
We have seen this when Coldfusion is installed on a multi-server configuration and the admin instance and notepad.exe are not running as the same user.
Mr Black - 31 Mar 2007 05:35 GMT
It is popping up. You just cannot see it, because services run on invisible
desktop, different from the default interactive desktop.
You have to chek "Allow service to interact with desktop" option in the
service properties in order to run CF service on the default desktop. After
that you will see the Notepad window.
You are getting the timeout error, because notepad.exe never terminates (see
above). When setting timeout to 0, you just start another detached invisible
instance of notepad.
You also can use http://www.cftagstore.com/tags/cfxexec.cfm to launch Notepad
on interactive desktop.