I think you are looking for Application or Server scoped variables. If you wanted all cfm files of an application to access those variables.
<cfscript> APPLICATION.DIR1 = "C:\documents\dir1"; APPLICATION.DIR2 = "C:\documents\dir2"; APPLICATION.DIR3 = "C:\documents\dir3"; </cfscript> If you wanted every cfm file on your box to access those variables. <cfscript> SERVER.DIR1 = "C:\documents\dir1"; SERVER.DIR2 = "C:\documents\dir2"; SERVER.DIR3 = "C:\documents\dir3"; </cfscript> Use with caution! And be very aware of your locking requirements, especially if on a Pre-MX version of ColdFusion. -------------- Ian Skinner Web Programmer BloodSource Sacramento, CA -----Original Message----- From: Bushy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:14 AM To: CF-Talk Subject: RE: <cfscript OK. I thought using the below I could define system environment variables? <cfscript> REQUEST.DIR1 = "C:\documents\dir1"; REQUEST.DIR2 = "C:\documents\dir2"; REQUEST.DIR3 = "C:\documents\dir3"; </cfscript> On Thu, 5 Jun 2003 10:59:59 -0700, Barney Boisvert wrote: > you need semicolons at the end of your lines. Every CFSCRIPT statement > requires a semicolon to terminate it, excepting block statements (if, for, > while, etc). > > x = 0; > if (x GT 1) > x = 1; > > > --- > Barney Boisvert, Senior Development Engineer > AudienceCentral (formerly PIER System, Inc.) > [EMAIL PROTECTED] > voice : 360.756.8080 x12 > fax : 360.647.5351 > > www.audiencecentral.com > > > -----Original Message----- > > From: Bushy [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 05, 2003 10:56 AM > > To: CF-Talk > > Subject: <cfscript > > > > > > Hi, > > > > Whats wrong with the below syntax? > > > > Here is the error: > > > > Error Diagnostic Information > > Just in time compilation error > > > > Invalid parser construct found on line 25 at position 1. > > ColdFusion was looking at the following text: > > > > </cfscript> > > Invalid expression format. The usual cause is an error in the > > expression structure. > > The last successfully parsed CFML construct was a CFSCRIPT tag > > occupying document position (23:1) to (23:10). > > > > > > <cfscript> > > REQUEST.DIR1 = "C:\documents\dir1" > > REQUEST.DIR2 = "C:\documents\dir2" > > REQUEST.DIR3 = "C:\documents\dir3" > > </cfscript> > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

