Path: utzoo!attcan!uunet!cbmvax!andy From: andy@cbmvax.UUCP (Andy Finkel) Newsgroups: comp.sys.amiga Subject: Re: A potiential nice AmigaDOS comand for 1.4 or 1.5 or ? Message-ID: <6967@cbmvax.UUCP> Date: 24 May 89 15:58:08 GMT References: <16087@louie.udel.EDU> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 61 In article <16087@louie.udel.EDU> C475141@umcvmb.missouri.edu (BRIAN WHITMAN) writes: >Lately I have been trying to reorganize a large portion of the files >on my floppy disks. In doing so I have found that a AmigaDOS is missing >a command. The command could be called MOVE. I feel that it should >work as the following. > >I have a file X in DF1:Mydir1 and I want to move it to DF1:. I would like >to be able to issue a command something like > > MOVE DF1:Mydir1/x DF1: > well, as long as its on the same volume you can do it with an alias... (using the 1.3 commands and shell) alias mv execute s:dpat rename [] then typing mv X df1: will move X up a level. This alias also lets you use wildcards with rename, btw, ie mv df1:#?.asm df1:hddisk which would move all the .asm files you have in the root of df1: into a subdirectory called hddisk. >However you would have to touch the data if the command is extended to take >on the form of > > MOVE Device1:dir1/x Device2:dir This one is a little more complicated...its trivial to make a script to do both the copy and the delete. Checking to see if device 1 is the same as device 2 is non-trivial in a script, you were to write a command specifically for this purpose. Here's the trivial one... :-) If you put it in the S: directory and set the script bit you'll be able to use it like any other command. .key source/a,dest .bra { .ket } copy "{source}" to "{dest}" delete "{source}" ; MOVE command andy -- andy finkel {uunet|rutgers|amiga}!cbmvax!andy Commodore-Amiga, Inc. "Do or Do Not. There is no Try." - Yoda, explaining the loop constructs in JCL (Jedi Control Language). Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.