?
Solved

Hide Folder

Posted on 2001-08-23
7
Medium Priority
?
1,754 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 120 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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