- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Looking For .Com files....
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
Forums
Discussions
Discussions
Discussions
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
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
06-15-2005 05:41 AM
06-15-2005 05:41 AM
Looking For .Com files....
I know the basic syntax is:
dir dev:[000000...]*.com
But how do I find out what to substitute for the "000000"??
Thanx In Advance,
->C.Waddell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 05:52 AM
06-15-2005 05:52 AM
Re: Looking For .Com files....
Wellcome to the VMS forum!
The syntax is:
$ dir dev:[*...]*.com
This will search the whole disk.
I dont know what you means with what to substitute for the "000000".
The [000000] directory is the top directory of the device. Something like / in unix or c:\ in DOS or Windows.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 06:04 AM
06-15-2005 06:04 AM
Re: Looking For .Com files....
The problem is I have like 10 disks on this machine and I would like to either query them all from the same place or just switch to each one an query it.
I apologize for my terminology, I'm a real noob at this.
->C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 06:10 AM
06-15-2005 06:10 AM
Re: Looking For .Com files....
You can not do a command like:
$ dir *:[*...]
but you can type:
$ dir disk1:[*...]*.com
$ dir disk2:[*...]*.com
or in one line:
$ dir disk1:[*...]*.com,disk2:[*...]*.com
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 06:23 AM
06-15-2005 06:23 AM
Re: Looking For .Com files....
There is a command procedure which will search all disks:
$l:
$ dv=f$device("*:","DISK")
$ if dv.eqs."" then exit
$ if f$getdvi(dv,"MNT") then dir 'dv'[*...]*.com
$ goto l
Maybe needs some more controls but in most cases it will work.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 06:52 AM
06-15-2005 06:52 AM
Re: Looking For .Com files....
Thanx for all your help. I need to rattle some cages to get the permissions to do my job.
->C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 08:00 AM
06-15-2005 08:00 AM
Re: Looking For .Com files....
Then all_disk:<000000...>*.com will give you all com files on all disks.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 06:41 PM
06-15-2005 06:41 PM
Re: Looking For .Com files....
Usually directories and files do not have the WORLD:R protection.
You need to be privileged enough to see all files: READALL or higher (SYSPRV,BYPASS) or be in a system group (UIC group low enough to fall into the SYSTEM: protection, usually <10 , exectly defined by sysgen parameter MAXSYSGROUP).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 11:47 PM
06-15-2005 11:47 PM
Re: Looking For .Com files....
since you are new to VMS (Welcome!):
The structure of the Sytem Disk can be quite confusing to newbees.
The toplevel contains a (varying) number of SYS* directories.
EACH of those have a SYSCOMMON.DIR
BUT: those are ONLY aliases! (more or less comparable to, but definitely different from, softlinks on *UX.
They are all aliases of VMS$COMMON.DIR
So, in your procedure you will see the same sequence of files a number of times.
They really are ONLY different paths to SAME files, so do NOT try to "clean up" the "superflous" files, DELETing ONE means you delete the ONLY one!
For completeness: not really often, but it DOES occur that that construct is also used for other purposes than just the system structure.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 12:00 AM
06-16-2005 12:00 AM
Re: Looking For .Com files....
At the begining are some customizations for
the DFU utility.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 12:40 AM
06-16-2005 12:40 AM
Re: Looking For .Com files....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 04:55 AM
06-16-2005 04:55 AM
Re: Looking For .Com files....
Thanx to all for you help.
To clairify: I am cataloging only. No deleting is ever planned.
Now this works real well:
$Dir _$1$DKA0:[000000...]*.com
Perfect, as a matter of fact. I get a nice list for the dive I can capture in a file. However, there is one little thing. This gives me all the versions of a file (;*) and I only want the latest.
Is there a way to specify that??
->C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 05:02 AM
06-16-2005 05:02 AM
Re: Looking For .Com files....
Adding a semicolon after the file type will result in displaying just the latest version of the files.
Example:
$Dir _$1$DKA0:[000000...]*.com;
Regards,
BC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 06:28 PM
06-16-2005 06:28 PM
Re: Looking For .Com files....
welcome in vms forum :-)
If you want to catalog you can retrieve only file name with follow commnad
$ DIR
you can also redirect output to file
$ DIR
Antonio Vigliotti