Re: showing n hideing files
Quote:
Originally Posted by Ebiru
... i can see hidden files and ... then i can hide files. ...
See and hide where? What control do you use to browse your files?
In case you just want to know how then you may use SetAttr Statement in VB:
VB Code:
Private Sub Command1_Click()
Static blnHidden As Boolean
blnHidden = Not blnHidden
SetAttr "c:\temp\test.txt", IIf(blnHidden, vbHidden, vbNormal)
End Sub
Re: showing n hideing files
come to think of it, i never encountered a vb app like that... but i think it's possible... but i dont think windows can't find it... it will still be regarded as hidden... i think... i'll try a search though... ;)
Re: showing n hideing files
Quote:
Originally Posted by Ebiru
it also possible to hide them so that only the vb program can find n see them?
No. In fact, you can't hide them at all if someone has their Windows Explorer configured to "Show All Files" (as do I and most people I know.)
Re: showing n hideing files
Quote:
Originally Posted by Hack
No. In fact, you can't hide them at all if someone has their Windows Explorer configured to "Show All Files" (as do I and most people I know.)
ok but is there a way to just hide it (ps i know how to hide them w/o vb)
Re: showing n hideing files
There is NO (easy) way to hide a file. You can use FolderLock or similar 3rd party apps, but writing one is another story. :p
Just for prank, you can do this,
Create a new filetype and associate that type with a full transparent icon. Windows will not show the icon.
For the filename, use the No-break Space character (Keystroke Alt+0160). (But your users still can find it by a search)
Another option may be using the Alt+255 character from 16bit DOS Mode. (will work only in FAT32 partitions) In this case the file will be visible, but Windows will not be able to access it. But anyone with good DOS knowledge will be able to break it in a few minutes.