> Running cfml.exe from a .bat file is a great way to use > the windows scheduler and has other uses as well but... > > Is there a way to "fake" a Form or URL post to the files? > > <cfexecute path="z:\cfusion\bin\cfml.exe" > arguments="d:\pathtofile\file.cfm?NoVar=Passed"\> > > Here, NoVar is not passed in the URL scope. Obviously > because we bypassed the webserver. I just think there must > be some subtle workaround that I am missing.
You can send URL parameters by simply setting a QUERY_STRING environment variable before running CFML.EXE. I've done this using a batch file like this: SET CF_TEMPLATE_PATH=c:\inetpub\wwwroot\myfile.cfm SET QUERY_STRING=NoVar=Passed C:\CFUSION\BIN\CFML.EXE I don't know how you'd pass form data that way, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

