Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!cbmvax!heimat!sneakers From: sneakers@heimat.UUCP (Dan "Sneakers" Schein) Newsgroups: comp.sys.amiga Subject: Re: A potiential nice AmigaDOS comand for 1.4 or 1.5 or ? Message-ID: <8380.AA8380@heimat> Date: 24 May 89 23:33:11 GMT Followup-To: comp.sys.amiga Organization: Sneakers Computing Lines: 54 In Message <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: > >and the following should happen. > > - A copy of file X is placed in the root directory > - the original file in DF1:Mydir should be deleted. > >Currently this takes two commands a COPY and then a DELETE. WRONG! WRONG! WRONG! WRONG! WRONG! WRONG! WRONG! WRONG! WRONG! WROMG! WRONG! The command already exists (has since before V1.0) and its called "RENAME". For example: RENAME DF1:Mydir1/x DF1: Will do exactly what you want. >I don't think that it woud be that hard for someone to do, if they have a >good understanding of how files and dir are recorded in the File Alocation >Table of the diskette. I would think that all you would have to do is just >manipulate that table. I don't think that you would have to actually touch >the data. This is how and why the "RENAME" command works as a MOVE command. >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 > Moving files across devices is *not* supported however. Sneakers -- ___ Dan "Sneakers" Schein //// BERKS AMIGA BBS Sneakers Computing //// 80+ Megs of software & messages 2455 McKinley Ave. ___ //// 12/2400 Baud - 24 Hrs West Lawn, PA 19609 \\\\ //// 215/678-7691 \\\\//// {pyramid|rutgers|uunet}!cbmvax!heimat!sneakers