Solved

Hide Folder

Posted on 2001-08-23
7
1,666 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
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now