Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site amiga.amiga.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!pyramid!amiga!bruceb From: bruceb@amiga.UUCP (Bruce Barrett) Newsgroups: net.micro.amiga Subject: Re: Execute question Message-ID: <462@amiga.amiga.UUCP> Date: Thu, 2-Jan-86 17:05:21 EST Article-I.D.: amiga.462 Posted: Thu Jan 2 17:05:21 1986 Date-Received: Sat, 4-Jan-86 04:44:56 EST References: <11327@ucbvax.BERKELEY.EDU> Reply-To: bruceb@hunter.UUCP (Bruce Barrett) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 19 Keywords: execute In article <11327@ucbvax.BERKELEY.EDU> dillon@ucbvax.BERKELEY.EDU (Matt Dillon) writes: > > I have a question on the Execute() and related commands, and on CD. >I would like to change my current working directory from a program (my own >shell), and can't seem to do it Execute("cd....",0 ,0) doesn't effect >anything. ((Good questions Matt!!)) Well, yes and no.... The CD command effected the task that was started up by the execute command, not your "parrent" task. Use the CurrentDir(lock) DOS function call to do this. > Which comes to my next question: Even when I use Execute() with >a fully specified path, it still seems to try to follow c: ??? The DOS execute call REQUIRES the RUN command. More specifically it requires "c:run" therefore the constant reference to C: --Bruce Barrett