General discussion

Locked

Restrict file extensions

By elaurea ·
Is it possible to restrict a file extension (.ZIP,.JPG,.EXE,etc) from copying to the directory? Is there a utility or DOS command we can use do achieve this?

Thanks in advance.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Restrict file extensions

by dan.richardson In reply to Restrict file extensions

I'm using win2k, I suspect the answer might lie in the dos command "cacls"
Good Luck,
Dan.

C>cacls
Displays or modifies access control lists (ACLs) of files

CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]
[/P user:perm [...]] [/D user [...]]
filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G user:perm Grant specified user access rights.
Perm can be: R Read
W Write
C Change (write)
F Full control
/R user Revoke specified user's access rights (only vali
/P user:perm Replace specified user's access rights.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
/D user Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.

Back to Windows Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums