Re: Persisting env vars in cmd windows
- From: "Richard" <RichardDummyMailbox58407@xxxxxxxxxxxxxxxxxxx>
- Date: 11 Nov 2006 10:15:01 -0800
Hi Pegasus,
It's always a little disappointing when preparing a fine batch file
solution for a poster and when that person takes no further interest
other than using the ready made solution. There is much more fun
in showing a poster what can be done, i.e. responding to a lively
interest from that person.
I agree fully with you. I haven't had the same experience in on-line
communication, but I'm reminded of my 13-yo grandson when he offered
this summer to spend two hours per week with me studying math if I'd
get him a cell-phone. I jumped on it and got him to learn the Binomial
Theorem, using Logarithms with interpolation, developing a recursive
formula for Pi using Archimedes method, deriving the derivative of
x^n. He's really a gifted kid, but then he switched from home
schooling to public Middle School and didn't have the will to continue.
It's sad. He didn't want to disappoint me, but I didn't want to
force him to continue. I just took back his toy. Maybe the desire for
it will inspire him again.
%PATH:~10,5%
Understood, thanks. I just didn't realized that notation applied to
strings generally.
Just to show you how I profited from your previous guidance, here's my
one-click setup for developing Ruby/Rails apps:
A000_SetupPrmpDevelopment.bat
-------------------------------------------------
Call CreatePathAndSymbols.bat _Pf Prmp
Start "Start Local WebServer" /MIN A010_StartLocalWebServer.bat
Start "Start Breakpointer" /MIN A020_StartBreakpointer.bat
Start "Clear Log Files" /MIN A030_ClearLogFiles.bat
Start "Start ERB" /MIN A040_StartERB.bat
Start "Start SearchDir" /MIN A050_StartSearchDir.bat
A010_StartLocalWebServer.bat
---------------------------------------------
@echo off
call CreatePathAndSymbols.bat _Pf Prmp
echo ::
echo :: Starting WebBrickServer
echo :: in %AppDir%
echo ::
@echo on
ruby script/server
etc. I'll probably publish this group after I've used with them for a
while, e.g. after deciding whether I want to start up the database
system every time, or maintain that as a discrete step. I like have
the separate batch files that can be invoked stand-alone, but also
being able to invoke some of them collectively with minimal redundancy.
This is really simple batch progamming, but I needed some
suggestions to "get it right" (according to my likes.)
There is one redundancy I will eliminate: the _Pf and Prmp parameters
(representing Client and Project) by invoking within the A000_Setup a
..reg file that creates persistent environment variables for RubyOnRails
Client and Project, thus allowing for the elimination of _Pf and Prmp
from the CreatePathAndSymbols invocation.
Again, I'm grateful for your help and interested in any additional
comments/suggestions/advice you may wish to share.
Best wishes,
Richard
.
- Follow-Ups:
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Re: Persisting env vars in cmd windows
- References:
- Persisting env vars in cmd windows
- From: Richard
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Re: Persisting env vars in cmd windows
- From: Richard
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Re: Persisting env vars in cmd windows
- From: Richard
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Re: Persisting env vars in cmd windows
- From: Richard
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Re: Persisting env vars in cmd windows
- From: Richard
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Re: Persisting env vars in cmd windows
- From: Richard
- Re: Persisting env vars in cmd windows
- From: Pegasus \(MVP\)
- Persisting env vars in cmd windows
- Prev by Date: Re: Critical update life cycle
- Next by Date: UNC paths
- Previous by thread: Re: Persisting env vars in cmd windows
- Next by thread: Re: Persisting env vars in cmd windows
- Index(es):
Relevant Pages
|
Loading