You're welcome.

Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com

> -----Original Message-----
> From: Giles Roadnight 
> [mailto:giles.roadnight@;goldcockerelbooks.co.uk] 
> Sent: 30 October 2002 11:30
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Cfexecute
> 
> 
> Oh well, never mind. Got it working now. Thanks for all your help.
> 
> 
> Giles Roadnight
> http://giles.roadnight.name
> 
> 
> -----Original Message-----
> From: spike.org.uk [mailto:spike@;spike.org.uk] 
> Sent: 30 October 2002 10:22
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Cfexecute
> 
> As far as I know, the schedule service only goes down to the 
> nearest minute.
> 
> It makes some sort of sense that this should be the case, 
> because you don't want it to be consuming processor cycles 
> constantly checking if there are any jobs to be started every second.
> 
> Spike
> 
> Stephen Milligan
> Team Macromedia - ColdFusion
> Co-author 'Reality Macromedia ColdFusion MX: Intranets and 
> Content Management' http://spikefu.blogspot.com
> 
> > -----Original Message-----
> > From: Giles Roadnight
> > [mailto:giles.roadnight@;goldcockerelbooks.co.uk] 
> > Sent: 30 October 2002 11:19
> > To: [EMAIL PROTECTED]
> > Subject: RE: [ cf-dev ] Cfexecute
> > 
> > 
> > Yeah thanks for that, I have it working now. Is there any way
> > I can tell it to the second when to start. I have got 10:17 
> > to work but I can't get 10:17.10 or 10:17:10 or 10:17 10 to work. 
> > 
> > Thanks
> > 
> > 
> > Giles Roadnight
> > http://giles.roadnight.name
> > 
> > 
> > -----Original Message-----
> > From: spike.org.uk [mailto:spike@;spike.org.uk]
> > Sent: 30 October 2002 10:09
> > To: [EMAIL PROTECTED]
> > Subject: RE: [ cf-dev ] Cfexecute
> > 
> > It lives in the winnt\system32\ directory - at.exe
> > 
> > type at /? at the command line and you should see some help
> > info for it.
> > 
> > You have to have the scheduling service running for it to
> > work, but apart from that it's pretty straightforward.
> > 
> > If you want to have notepad pop up you would type something 
> like this:
> > 
> > at 10:15 /interactive "notepad.exe"
> > 
> > That's assuming that notepad is in a directory on your path.
> > 
> > You can also specify the full path:
> > 
> > at 10:15 /interactive "c:\winnt\notepad.exe"
> > 
> > If you want to call it from cfexecute, you need to pass the
> > arguments to the command as an array:
> > 
> > <cfset args = arrayNew(1)>
> > <cfset args[1] = timeformat(dateadd('n',1,now()),"HH:MM")>
> > <cfset args[2] = "/interactive">
> > <cfset args[3] = "notepad.exe">
> > <cfexecute name="c:\winnt\system32\at.exe" arguments="#args#"
> > timeout="3" />
> > 
> > That should make Notepad popup on the screen of the server
> > where it is executed less than a minute after the file is browsed.
> > 
> > Spike
> > 
> > Stephen Milligan
> > Team Macromedia - ColdFusion
> > Co-author 'Reality Macromedia ColdFusion MX: Intranets and
> > Content Management' http://spikefu.blogspot.com
> > 
> > > -----Original Message-----
> > > From: Giles Roadnight 
> > > [mailto:giles.roadnight@;goldcockerelbooks.co.uk]
> > > Sent: 30 October 2002 11:03
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: [ cf-dev ] Cfexecute
> > > 
> > > 
> > > I tried it with a batch file with the same results.
> > > 
> > > Spike, can you tell me more about the at command, I can't 
> find any 
> > > documentation on it.
> > > 
> > > Thanks
> > > 
> > > 
> > > Giles Roadnight
> > > http://giles.roadnight.name
> > > 
> > > 
> > > -----Original Message-----
> > > From: spike.org.uk [mailto:spike@;spike.org.uk]
> > > Sent: 30 October 2002 09:50
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: [ cf-dev ] Cfexecute
> > > 
> > > You can get cfexecute to run things that aren't command line 
> > > programs, but then again, that's because most programs support 
> > > command line execution anyhow:
> > > 
> > > e.g. iexplore.exe "http://www.macromedia.com";
> > > 
> > > The problem you will run into is that the CF Server is 
> logging on to 
> > > the operating system with a different user session than 
> the one you 
> > > are using to work with the desktop, so the results of the 
> > > <cfexecute> call will not appear on the desktop. You can 
> get around 
> > > this by calling the 'at' command with <cfexecute> and 
> getting it to 
> > > execute the program you want to see on the desktop.
> > > 
> > > Spike
> > > 
> > > Stephen Milligan
> > > Team Macromedia - ColdFusion
> > > Co-author 'Reality Macromedia ColdFusion MX: Intranets 
> and Content 
> > > Management' http://spikefu.blogspot.com
> > > 
> > > > -----Original Message-----
> > > > From: Giles Roadnight
> > > > [mailto:giles.roadnight@;goldcockerelbooks.co.uk]
> > > > Sent: 30 October 2002 10:30
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [ cf-dev ] Cfexecute
> > > > 
> > > > 
> > > > Hi
> > > > 
> > > > Is cfexecute only used to run command line programs? I
> > want to use
> > > > it to start a program on the server (well desktop - not
> > production
> > > > server) and leave it running. This is a windows program 
> so I want
> > > > the window to appear and stay there.
> > > > 
> > > > Thanks
> > > > 
> > > > 
> > > > Giles Roadnight
> > > > http://giles.roadnight.name
> > > > 
> > > > 
> > > > --
> > > > ** Archive:
> > > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > > > 
> > > 
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > > For human help, e-mail: [EMAIL PROTECTED]
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > > --
> > > ** Archive:
> > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > > 
> > 
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED] 
> > > For human help, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > --
> > > ** Archive:
> > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > > 
> > 
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED] 
> > > For human help, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > --
> > ** Archive: 
> http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > 
> 
> > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED] For human help, e-mail: 
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > --
> > ** Archive: 
> http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > 
> 
> > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED] For human help, e-mail: 
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to