🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.rexx
Article #4792

Re: How to set/change Current

#4792
From: John Hopkins
Date: Sat, 20 Apr 1996 19:12
38 lines
1845 bytes
Greg Goss wrote:
> 
> warren@borg.com wrote:
> 
> >In <3170a4fb.72659716@199.60.229.3>, oreo@mindlink.bc.ca (Greg Goss) writes:
> >>frederick.sohn@moondog.com (FREDERICK SOHN) wrote:
> 
> >>>      'call cd [target directory]'
> >>This does not word in Regina/win32
> >
> >thisdir='q:\whatever.in.the.heck.you.want'
> >nowdir=thisdir
> 
> Warren's answer is not particularly verbose.  I think he is suggesting
> that I use a full path specification on all DOS calls rather than a
> CD-relative one.  This will solve my immediate need (thanks), but I'd
> still like to have a CD if anyone has any suggestions.
> 
> At least using fully specified file names is better than my previous
> best solution of the program calling itself in the new directory.


Perhaps I'm missing the point, but the following three lines get the 
job done for me, in OS/2 REXX:

'C:'
'CD \DIRNAME\SUBDIR'
'START NEWPROG.EXE'

If you need a relative reference, just adjust line two accordingly, 
(skip the initial "\").  I use the full pathname so I can be positive 
I'm where I want to be :).

Hope this is useful.

Sincerely,

John Hopkins
Technical Details
Message-ID: <31793729.DA3@ix.netcom.com>
Path: arc1-ca.pugleaf.net!ix.netcom.com!news
References: <4k5iem$lp9@news.monmouth.com> <8BE5395.045C000ED3.uuout@moondog.com> <3170a4fb.72659716@199.60.229.3> <4kso32$9fn@ns2.borg.com> <3172dbaf.30328679@199.60.229.3>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ix.netcom.com!news
From: John Hopkins <jhopkns@ix.netcom.com>
Newsgroups: comp.lang.rexx
Subject: Re: How to set/change Current
Date: Sat, 20 Apr 1996 14:12:41 -0500
Organization: Netcom
Distribution: inet
Message-ID: <31793729.DA3@ix.netcom.com>
References: <4k5iem$lp9@news.monmouth.com> <8BE5395.045C000ED3.uuout@moondog.com> <3170a4fb.72659716@199.60.229.3> <4kso32$9fn@ns2.borg.com> <3172dbaf.30328679@199.60.229.3>
NNTP-Posting-Host: dsm-ia2-01.ix.netcom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-NETCOM-Date: Sat Apr 20  2:06:52 PM CDT 1996
X-Mailer: Mozilla 2.01Gold (Win95; I)
CC: oreo@mindlink.bc.ca