Execute a batch-file that does this:

set LPDSERVER=[the value]
myexe.exe

and call the batch-file (does cfexecute support executing batch-files, or
only .exe?) with cfexecute. Alternatively call cmd.exe /c batchfile.bat

Alternatively, cfexecute:
cmd.exe /c set lpdserver=[thevalue]&&myexe.exe




-------------------------------------------------------------
Hugo Ahlenius                  E-Mail: [EMAIL PROTECTED]
Project Officer                Phone:            +46 8 230460
UNEP GRID-Arendal              Fax:              +46 8 230441
Stockholm Office               Mobile:         +46 733 467111
                               WWW:       http://www.grida.no
------------------------------------------------------------- 






| -----Original Message-----
| From: Bushy [mailto:[EMAIL PROTECTED]
| Sent: Thursday, June 05, 2003 15:11
| To: CF-Talk
| Subject: RE: Definfing system environment variables
|
|
| Is there a way to define system environment variables for the
| users session only without having to reboot the server?
|
|
| On Thu, 05 Jun 2003 08:17:47 -0400, Bushy wrote:
|
| >
| >
| > Umm...
| >
| > Not sure thats what I need.
| >
| > We are running CYGWIN which I have certain directories pre-defined.
| >
| > Like:
| >
| > $test = "c:\documents\test"
| >
| > So when a user opens a telnet session they can do:
| >
| > > cd $test
| >
| > I need to define 200+ environment variables for my
| web-interface to work. Is there a way to get system
| enviroment variables defined without having to hammer them in
| and
| > then reboot the server.
| >
| > Am I making any sense?
| >
| >
| >
| > On Thu, 5 Jun 2003 08:03:27 -0400, Heald, Tim wrote:
| >
| > > Use the command line
| > >
| > > path=%path%+c:\myNewPath\;
| > >
| > > Or whatever
| > >
| > > Tim
| > >
| > > > -----Original Message-----
| > > > From:   Bushy [SMTP:[EMAIL PROTECTED]
| > > > Sent:   Thursday, June 05, 2003 8:07 AM
| > > > To:     CF-Talk
| > > > Subject:        re: Definfing system environment variables
| > > >
| > > > Hi,
| > > >
| > > > I've developed a web interface that executes a .EXE
| file on the server.
| > > > This program being executed requires the system
| environment "LPDSERVER" to
| > > > be defined.
| > > > I can get my application to work if I go and define
| "LPDSERVER" as a
| > > > system environment variable and reboot the box. There
| are quite a few
| > > > other that need defining also.
| > > >
| > > > Is there a way in CF (or someother language) to define
| Windows 2000
| > > > environment variables without having to do it via
| COntrol Panel? It would
| > > > be so much easier if they could
| > > > all be hammered into a database which would make easy
| updating/defining
| > > > etc.
| > > >
| > > > Please say it can be done? Maybe with a COM?
| > > >
| > > > Help...
| > > >
| > > >
| > > >
| > >
| 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to