Results 1 to 10 of 10

Thread: Create invisible folder

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Location
    Sweden
    Posts
    9

    Create invisible folder

    I have a problem! I want to create a folder in Windows xp with VB 6, and i want that folder to be invisible (even if i have marked "Show hidden folders" in control panel). But thats not enough, Ii want the application thats created the invisible folder have access to the invisible folder.

    Could this be done? And if so could any one help me or point me in the right direction.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Create invisible folder

    No. Any folder that exists on your machine can be seen if "Show Hidden Folders" is checked.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Location
    Sweden
    Posts
    9

    Re: Create invisible folder

    But there is some program that can hide folders, like "Folder Lock" http://www.newsoftwares.net/folderlock/ how are they constructed?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Create invisible folder

    Quote Originally Posted by wolf67
    But there is some program that can hide folders, like "Folder Lock" http://www.newsoftwares.net/folderlock/ how are they constructed?
    I don't know, but I would be willing to bet you they are not constructed in Visual Basic.

  5. #5
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Create invisible folder

    Quote Originally Posted by wolf67
    I have a problem! I want to create a folder in Windows xp with VB 6, and i want that folder to be invisible (even if i have marked "Show hidden folders" in control panel). But thats not enough, Ii want the application thats created the invisible folder have access to the invisible folder.

    Could this be done? And if so could any one help me or point me in the right direction.
    If you have "show hidden folders" checked, it will always show those hidden folders. No way to prevent that. Earlier versions of Windows, if I am not mistaken don't have the option to show hidden files, but may be wrong.. would have to research that. But to hide a folder, you would have to do an ATTRIB +H command in the command line so you could always shell to the Command Prompt in VB6, use the MKDIR command to make the folder and then use the ATTRIB +H command to hide it. Would I be wrong anyone?

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Create invisible folder

    It would still show up in Windows Explorer, and the hidden attribute would be pretty easy to change.

    I know nothing about the product that wolf67 linked to, but if it does what it says it does, it is doing some pretty low level stuff.

  7. #7
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Create invisible folder

    The product mentioned may not actually create folders viewable by the filesystem, but rather contain them in a proprietary file only that program knows how to present as a "folder".

    There is no way to make a folder in the NTFS or FAT filesystems that cannot be veiwed by your average computer geek.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  8. #8
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: Create invisible folder

    Indeed i try building a program like that few years ago in vb6 and i came to one conclution the folder that are bing locked by the software are not folders but compred file.
    so i file an app (don't ask for it i don't have it no more it was 2 years ago) that stors the files in a file (like zip but only my app can extract it) and it will show the same icon as windows folder.but when u double click on it my app comes up and it will ask the user to enter his password to enter oncethe user enters my app extract the files and place them in the temp folder untill the user lock it or close my app or deletes it and place the files again in the compressed file.
    good luck makeing this....took me few months..and some other guys help
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

  9. #9
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Create invisible folder

    This makes files invisible:
    VB - How to use Alternate Data Stream files

    If you want to create an invisible directory, I assume it's because you want to put files in it.

    Well, this skeeps one step....

  10. #10
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    Re: Create invisible folder

    If you are deploying on an NTFS volume, you can put your data into an "alternate data stream" tacked onto a file. That would probably be the hardest thing for your average user to find. More info:

    http://support.microsoft.com/kb/105763

    [EDIT] Beat me to it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width