Masking Pictures

dynamictiger

Registered User.
Local time
Today, 03:24
Joined
Feb 3, 2002
Messages
270
I have a database which scans in some logos and other stuff for forms and reports. Currently they are scanned in to CurDir and stored as Tif files. I was thinking the user could damage these, alter these or otherwise muck about intentionally or not. This is not my intent. So then I wondered, if I can't filter the picture file type and give it a custom file type. For example MyPicture.osy would appear instead of MyPicture.tif, as this would cause a not associated type this would limit users ability to tinker.

Any suggestions?
 
I suggest that you change the file attributes to prevent accidental changes to the image files. Using the SetAttr function will allow you to change the files "Read-Only" attribute on or off. You could also turn the Hidden attribute on or off if you wanted.

SetAttr "C:\My Photos\MyPicture.jpg", vbReadOnly 'turn Read-Only attribute on

SetAttr "C:\My Photos\MyPicture.jpg", vbNormal 'turn all attributes off

You could use a loop to set the attributes for all files in a folder.

HTH
 

Users who are viewing this thread

Back
Top Bottom