General HydroStatics
Ship Stability Software |
Command of the Week
(New or interesting aspects of GHS that you may not know about) |
MOO-VE and RE-MOO-VE
|
When a farmer wants to move a cow to a new pasture, he might shout, "MOO-VE!!" Why then does a naval architect wanting to move a file to a new folder use RENAME?
Well, simple really... GHS doesn't have a command named MOVE, but does have RENAME (see COW069), which relocates a file to a new location when the destination path differs from the source path. For example, to move COW.MOO from the current directory to the ^-prefixed library path: |
RENAME cow.moo ^cow.moo |
There is another way to moo-ve files with GHS... you can COPY the file to a new location and then re-moo-ve the original using the ERASE command: |
COPY cow.moo ^coo.moo ERASE cow.moo |
By default ERASE safely removes files into the Recycle Bin. But in a case like this where a copy has just been made, you might want to remove the original completely using the ERASE /NORECYCLE parameter: |
COPY cow.moo ^cow.moo ERASE cow.moo /NORECYCLE |
Questions, comments, or requests?
Contact Creative Systems, Inc. USA phone: 360-385-6212 Fax: 360-385-6213 Office hours: 7:00 am - 4:00 pm Pacific Time, Monday - Friday Mailing address: PO Box 1910 Port Townsend, WA 98368 USA Click here for an index to this and previous COWs |