Creating Invisible Hiddenn file in Access

C

Centaur

The code for creating a file is

Open "C:\filename.txt" For Output As #1

How can I create this file as invisible/hidden

Thank you

Centaur
 
A

Albert D. Kallal

Check out

SetAttr in the help:

Cut and paste from the help gives:


Sets attribute information for a file.

Syntax

SetAttr pathname, attributes

The SetAttr statement syntax has these named arguments:


Constant Value Description

vbNormal 0 Normal (default)
vbReadOnly 1 Read-only
vbHidden 2 Hidden
vbSystem 4 System file
vbArchive 32 File has changed since last backup

Remarks

A run-time error occurs if you try to set the attributes of an open file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top