- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- rename path issue [ newbie question]
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 03:53 AM
тАО08-09-2005 03:53 AM
Re: rename path issue [ newbie question]
$rename disk1:[acct1.data.dirTOMOVE...]*.*;* disk1:[ACCT2.data.dirTOMOV...]*.*;*
and
$rename disk1:[acct1.data.dirTOMOVE...]*.*;* disk1:[ACCT2.data.dirTOMOV]*.*;*
Note: I need to move the directory and all it's subdirectories and their contents. The data is very critical so need to understand clearly what I am doing.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 03:54 AM
тАО08-09-2005 03:54 AM
Re: rename path issue [ newbie question]
Does this mean I need to have DIRTOMOVE.DIR already created in ACCT2 before hand?
No or Yes?
Because Hein and me have different point of view I try to explain better.
[No]
If ACCT2 doesn't exist, ACCT1 is renamed as is keeping source owner (of ACCT1).
[Yes]
If ACCT2 exists (and/or its subdirectory) command can't rename directory (because it alredy exists), send you an error message and keeps taregt owner (of ACCT2).
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 04:03 AM
тАО08-09-2005 04:03 AM
Re: rename path issue [ newbie question]
if I do the following
$rename disk1:[acct1.data]dirTOMOVE.dir - disk1:[ACCT2.data]
won't this entirely solve my problem?
Basically, it will copy all the contents and sub directories of dirTOMOVE.dir to disk1:[ACCT2.data]
I already have disk1:[ACCT2.data ] setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 04:19 AM
тАО08-09-2005 04:19 AM
Re: rename path issue [ newbie question]
when I do
$ RENAME/LOG -
DISK1:[ACCT1.DATA]DIRTOMOVE.DIR -
DISK1:[ACCT2.DATA]DIRTOMOVE.DIR
Does this mean I need to have DIRTOMOVE.DIR already created in ACCT2 before hand?
To this, Hein answered "Yes"
I am sorry, but have to ABSOLUTELY disagree!!
The (special) file DIRTOMOVE.DIR always has version ;1.
It has to, if it is be able to functon as a DIRECTORY.
Now, if it already exists in [acct2.data], the RENAME will already find a ;1 , and generate ;2
Now there are TWO versions of the .DIR file, and you are in for some nasty surprises!
Those may be summarised by: YOU DO NOT WANT THIS!!!
So, the answer to the quoted question HAS to be NO, it does NOT have to exist, at should NOT exist!!
And Antonio's "RENAME will give an error" also is INCORRECT! It just creates ;2
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 04:23 AM
тАО08-09-2005 04:23 AM
Re: rename path issue [ newbie question]
sorry, sorry sorry.
I wrong :-(
Don't read my previous posts.
$rename disk1:[acct1.data]dirTOMOVE.dir - disk1:[ACCT2.data]
1.Directory [ACCT2.data] has to exist;
2.After rename all files and subdirectory are moved in new folder
3.Directory [ACCT1.DATA] stay empty
4.Directory [ACCT2.DATA] contains all files and directory.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 04:27 AM
тАО08-09-2005 04:27 AM
Re: rename path issue [ newbie question]
I believe that Hein mis-spoke (wrote).
Obviously, before doing any of these operations with real files, create a sample directory tree with a population of files and experiment until you are comfortable that you understand what is happening.
It takes only a few seconds to create a group of nested subdirectories a few levels deep, each with some non-directory files. Do the RENAME/LOG operation on this tree and you will see how the mechanics of RENAME operate without working with live data.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 04:27 AM
тАО08-09-2005 04:27 AM
Re: rename path issue [ newbie question]
I never use full path, I usually use path from current directory.
So I didn't read ACCT1/2 is just a level above the current you want to rename.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 05:09 AM
тАО08-09-2005 05:09 AM
Re: rename path issue [ newbie question]
$ rename/log disk1:[000000]acct1.dir disk1:[000000]acct2.dir
I prefer to add /log to all my copy/rename/delete commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 05:55 AM
тАО08-09-2005 05:55 AM
SolutionRob> I believe that Hein mis-spoke (wrote).
You guys are right. I mis-read.
I _thought_ he had pre-created an empty directory, which would have to be removed.
My bad.
Dale> all Nipun really wants to do is:
> $ rename/log disk1:[000000]acct1.dir disk1:[000000]acct2.dir
Yes, but he is 'nervous' about it.
Nipun> rename disk1:[acct1.data]dirTOMOVE.dir - disk1:[ACCT2.data]
Nipun> won't this entirely solve my problem?
YES
> Basically, it will copy all the contents and sub directories of dirTOMOVE.dir to disk1:[ACCT2.data]
NO. But this is semantics / nit picking.
It will NOT copy contents or subdirectories.
It will only rename that top directoy.
But that contents and those subdirectories will become visible, will get a path, under that new top just like you desire.
So the desired effect will be there with a single, reversible, sub-second command.
Sorry 'bout mis-reading earlier.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 06:38 AM
тАО08-09-2005 06:38 AM
Re: rename path issue [ newbie question]
http://www.vtfm.narod.ru