home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!KOPC.HHS.DK!ARNE
- From: ARNE@KOPC.HHS.DK (Arne Vajhxj)
- Newsgroups: comp.os.vms
- Subject: Re: MOVE for Vms anywhere ?
- Message-ID: <01GSCL9O0D9U8WW82Q@kopc.hhs.dk>
- Date: 15 Dec 92 14:29:02 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 39
-
- > I am looking for a Vms MOVE command (I'ld prefer a fully Vms command which
- > allows /LOG, /CONFIRM, /EXCLUDE etc. qualifiers).
- >
- > I haven't seen anything like it yet, so I wrote my own (in DCL :-{), but
- > I can't get it working the way I want it to.
-
- If the file is being move between the same disk, then the RENAME command has
- the functionality. If the file is moved between disks, then you will have
- to COPY and DELETE !
-
- You can try defining something like:
-
- MOVE:==@disk:[dir]MOVE.COM
-
- where MOVE.COM contains:
-
- $ if f$parse(p1,,,"DEVICE") .eqs. f$parse(p2,,,"DEVICE")
- $ then
- $ rename 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
- $ else
- $ copy 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
- $ delete 'p1'
- $ endif
- $ exit
-
- There is still a few restrictions compared with a real DCL command:
- - qualifiers must be specified after the parameters
- - if the COPY/DELETE is used, then version numbers must be specified
-
- but theese could be (almost completely) avoided by some more DCL
- programming
-
- Arne
-
- Arne Vajhxj local DECNET: KO::ARNE
- Computer Department PSI: PSI%23831001304030::ARNE
- Business School of Southern Denmark Internet: ARNE@KO.HHS.DK
-
-
-