Solved

Hide Folder

Posted on 2001-08-23
7
1,714 Views
Last Modified: 2008-03-17
Hi!

For example. If I want to hide D:/Projects

Is it possible in delphi?
0
Comment
Question by:SULTAN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 6

Accepted Solution

by:
Stuart_Johnson earned 30 total points
ID: 6420138
Hi Sultan,

This will set the attributes of the folder to hidden:

SetFileAttributes('D:\Projects', FILE_ATTRIBUTE_HIDDEN);

Be aware that the folder is still "visible" if Explorer is told to show hidden files.

Cheers,

Stu.
0
 
LVL 6

Expert Comment

by:Jaymol
ID: 6420147
The only way I've found to succesfully hide something in Windows is to move it into a subdirectory of the windows font directory.

eg.. (on WinNT) To hide directory "D:\Projects", move it to "C:\WinNT\Fonts\Projects"

Although this isn't ideal as it isn't really hiding it, and it will show up with a "Find files or folders.." type search, it doesn't show up in "My Computer", no matter what the view options are set to.

Alternatively, if you can get away without doing it in Delphi, have a look at a program called "Magic Folders" which can be found at...

           http://www.pc-magic.com/

It does what you ask, but I don't know how.

Hope this helps,

John.
0
 
LVL 1

Expert Comment

by:Dennis9
ID: 6421815
Hi.
There is a place in the registry that u can edit so the folder get invisible - but i just don't know where :<

Dennis
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:Rob Siddell
ID: 6422783
I will do some reading in my registry book to see if i can find something on making folders invisible.

Rob
0
 
LVL 7

Expert Comment

by:Rob Siddell
ID: 6422848
Well i could tell you how to remove the option to see hidden files/directories and to set the option via your program and what not and how to restore the option, but i'm not seeing how to make it invisible. I will keep looking though.

Rob
0
 

Author Comment

by:SULTAN
ID: 6442517
Good work!

Thanks, SULTAN
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6443212
Cheers Sultan.

Stu.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tidtcpserver listening on multiports? 1 54
How to add columns to a RAD Studio FMX grid at design time 1 57
IP without any Dots 1 95
Get weeknumber and year from date 4 55
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question