Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.amiga » Execute question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Execute question [message #279694] Wed, 01 January 1986 16:45 Go to next message
dillon is currently offline  dillon
Messages: 81
Registered: November 1985
Karma: 0
Member
Article-I.D.: ucbvax.11327
Posted: Wed Jan  1 16:45:50 1986
Date-Received: Thu, 2-Jan-86 03:35:19 EST
Organization: University of California at Berkeley
Lines: 11
Keywords: execute


	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
Re: Execute question [message #279710 is a reply to message #279694] Thu, 02 January 1986 17:05 Go to previous message
bruceb is currently offline  bruceb
Messages: 41
Registered: October 1985
Karma: 0
Member
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
Re: Execute question [message #279714 is a reply to message #279694] Thu, 02 January 1986 15:08 Go to previous message
mykes is currently offline  mykes
Messages: 45
Registered: January 1986
Karma: 0
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Disk organization for developing
Next Topic: Mailing List
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue May 14 15:57:10 EDT 2024

Total time taken to generate the page: 0.02668 seconds