Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site 3comvax.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!oliveb!3comvax!mykes From: mykes@3comvax.UUCP (Mike Schwartz) Newsgroups: net.micro.amiga Subject: Re: Execute question Message-ID: <320@3comvax.UUCP> Date: Thu, 2-Jan-86 15:08:40 EST Article-I.D.: 3comvax.320 Posted: Thu Jan 2 15:08:40 1986 Date-Received: Sat, 4-Jan-86 05:00:56 EST References: <11327@ucbvax.BERKELEY.EDU> Reply-To: mykes@3comvax.UUCP (Mike Schwartz) Organization: 3Com Corp; Mountain View, CA Lines: 22 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. > > Which comes to my next question: Even when I use Execute() with a fully >specified path, it still seems to try to follow c: ??? > > Thanx, > > -Matt I posted a program called MyCLI to this newsgroup that does CD's inside a program. YOU MUST HAVE THE "RUN" PROGRAM IN YOUR C: DIRECTORY for the Execute() function to work at all. Using Execute() to do a CD is overkill, though. See MyCLI.c for an example of how to use the AmigaDos CurrentDirectory() function, or consult your AmigaDos technical reference guide. mike schwartz