Re: how to hide a file



On Feb 19, 4:18 am, <address...@xxxxxxxxxxxxxxx> wrote:
Chris Scheers <ch...@xxxxxxxxxxxxxxxxxxx> wrote:
Mukesh wrote:
On Feb 10, 6:07 pm, Mukesh <mukesh.rijhw...@xxxxxxxxx> wrote:
Help: Does anyone know how to hide a file in OpenVMS ? like in
Unix/
linux if you prepend a file name with a . (dot) it will hide the
file
(example .scriptname)

Thanks,
Mukesh

The DIR (directory) command in VMS shows all files by default. In UNIX,
you have to add options to list certain files (like those that begin
with a "." (example
 ls -a
 would show all the files including those beginning with a ".", where a
plain
ls
doesn't).  You would have to put a symbol for DIR in SYLOGIN.COM that
would exclude files beginning with "." such as:

$ DIR*ECTORY == "directory/exclude=".*"

This can be overridden by users in their own LOGIN.COM if they have
access to edit it.  That cam be changed in AUTHORIZE to another name or
location so it's possible with some work to enforce this symbol system
wide.  It can still be changed by those with access to the DCL prompt
though.

--- news://freenews.netfront.net/ - complaints: n...@xxxxxxxxxxxx ---

It is ALWAYS a good idea to test things before you throw them out on
the net.

The symbol definition that you give returns an invalid operator error.
When you get the number of quotes right, the resulting DIR command
will always return "no files found"

Bart

.



Relevant Pages