TIP: Click on subject to list as thread! ANSI
echo: os2user-l
to: All
from: Herbert Rosenau
date: 2004-10-25 05:17:06
subject: Re: REXX - Get Current Drive Command ???

Don{ald} O. Woodall schrieb:
> Hello REXX Programmers
> 
>      I am dreaming of a new command.
> 
>      The command:   Bootdrive = sysbootdrive()
> 
> is what has me going.  I am looking for, dreaming of something
> 
> like:   Currentdrive = syscurrentdrive()
> 
>      Why?

No, you doen't.

put this line in the place when you knows the drive you have to work on:
startpath = Directory(newdrive) /* set new working directory */
                                  /* and note the path we're coming 
from */

Yeah, startpath = directory() /* change nothing but note the pathe 
we're on yet */
would do the same. But it costs extra time only to read the path we#re 
already on. So combining both, change path and note old location saves 
a bit time.


Put this line in on the place you would return to the drive you comes from
x = Directory(startpath)        /* set the original path we were 
started with */

The assignment is superflous but usimng always a fuction call instead 
of CALL statement makes the thing more readable.

Directory() returns always the current path is is on. Even as it 
changes to drive/path giverrn as parameter.

-- 
Tschau/Bye

Herbert Rosenau
EDV Beratung & Programmierung
Eichelsdorfer Str. 15
97461 Hofheim i.UFr.

Tel: 49-9523-502834
Fax: 49-9523-502823                     http://www.dv-rosenau.de/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/E8folB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

 To visit your group on the web, go to:
    http://groups.yahoo.com/group/os2user/

 To unsubscribe from this group, send an email to:
    os2user-unsubscribe{at}yahoogroups.com

 Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)
SEEN-BY: 633/267 270 5030/786
@PATH: 3634/1000 12 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.