Re: Show all files with empty filename

From: Peter Weaver (newsgroup_at_weaverconsulting.ca)
Date: 07/13/05


Date: Wed, 13 Jul 2005 11:04:32 -0400

Rudolf Wingert wrote:
> I would like to see all files without an filename within OpenVMS
> 7.3[-1]. With DIR it is impossible. If I use $DIR [*...].*, I will see
> all files of the disk. Also is there a strange behavior if you delete
> files (e.g. $DEL hugo.*;*) and there is no filetyp (error in
> filenamespecification). Is this a bug or a feature?

I do not think you can use DIR to list files with no name but with an
extension. You can write a small .COM to loop through write sys$output
"''f$sear(".*;*")'" to get the files.

What strange behaviour do you see with DEL HUGO.*;* I think it looks
fine;

$ create .x ! No filename, but an extension
 Exit
$ create x. ! no extension but has a filename
 Exit
$ dir .* ! Should only show .X (IMHO, but someone will tell me that MHO
is wrong), but shows both files

Directory [dir]

.X;1 0 13-JUL-2005 10:58:21.65
X.;1 0 13-JUL-2005 10:58:24.31

Total of 2 files, 0 blocks.
$ write sys$output "''f$sear(".*;*")'" ! finds the file you were
looking for
[dir].X;1
$ del x.*; ! What strange behaviour do you see here?
DELETE [dir]X.;1 ? [N]: y
$

-- 
Peter Weaver
Weaver Consulting Services Inc.
Canadian VAR for CHARON-VAX
www.weaverconsulting.ca


Relevant Pages

  • Re: Using an Excel sheet for batch delete
    ... but wondered what the routine would make of the situation where the input to both source and destination popups was identical. ... When I used it on filenames with no extension, ... Does the filename contain any dots. ... If SourcePath = "" Then Exit Sub ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Common Dialog - Change file extension
    ... VB's dialog (in fact no common dialog) provides this ... In order to change the extension you have to: ... - send a message to the control to extract the current text in the filename ... the 'Save as type' combobox in the Common Dialog Control. ...
    (microsoft.public.vb.general.discussion)
  • Re: Apply LEN result to string?
    ... If the end result is to strip the extension off a filename then you could do ... Public Function RemoveExtension(ByVal FileName As String, ... Using VB to fetch the filename and placing it in cell B1., ...
    (microsoft.public.excel.programming)
  • Re: Cant copy/paste
    ... MS-MVP Windows Shell/User ... I have these five Nvidia entries disabled. ... Filename: C:\WINDOWS\System32\nvshell.dll ... Extension Name: Desktop Explorer Menu ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Having trouble with OLE - Help please 3rd time asking - No respons
    ... Most of these relate primarily to images, but can be applied to any type of file ... need to parse the extension from the full path when the user selects a file, ... The following FAQ shows how to parse a filename from a full path? ... the path by getting the database location then appending the relative part of the path and the filename. ...
    (microsoft.public.access.modulesdaovba)