Solved

Hide or disable a directory??

Posted on 1998-03-14
8
259 Views
Last Modified: 2013-12-03
Is there any way to hide or disable a directory?  I need it for my security system.

thanks
0
Comment
Question by:stevenc317
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:dabbler
ID: 1412005
You could just set the Hidden attribute....
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1412006
but then windows says that there is a hidden item...  well yeah that would work, but then how do I disable the View --> Options --> View tab??  Is it a reg key?
0
 
LVL 39

Expert Comment

by:abel
ID: 1412007
There's no registry key for restricting access to setting those attributes. But you can restrict access for explorer.exe. And what about DOS? But you can forbid access to DOS as well. And WinFile.exe? and so on.
If you would like to really restrict access to a directory you might think of something like the Temporary Internet Files folder. People only see what you want them to see. but that's advanced programming. (compare to DOS and you understand what I mean, besides, there are more folders like that).
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 1

Author Comment

by:stevenc317
ID: 1412008
well how do I disable winfile.exe and explorer.exe?
0
 
LVL 39

Expert Comment

by:abel
ID: 1412009
try poledit.exe, you'll find it on your win95 cdrom.
I can also tell you how to do it via the registry, but that's too much for 15 pts. You know, 50 pts is "easy", so what's your q.
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1412010
how do i do it?
0
 
LVL 39

Accepted Solution

by:
abel earned 70 total points
ID: 1412011
Lookup this key:
HKCU\Sotware\Microsoft\Windows\CurrentVersion\Policies

Create the following value
RestrictRun=1

Create the following key:
HKCU\Sotware\Microsoft\Windows\CurrentVersion\Policies\RestrictRun

Create values as follows:
1="notepad.exe"
2="poledit.exe"
3="command.com"
4="winhlp32.exe"
5="appname.exe"

Every value should have made of a subsequent number, starting from 1.
Every value is an application which you allow to run. If you want to restrict access this way, you start restricting access on every file and every value you add contains a filename which is allowed to be run.

It would be fairly easy making a program looking up all the exe, bat and com-files on your system and from that list, you only have to exclude some files (like command.com, explorer.exe and winfile.exe).
The restriction is quite good. Even if you allow starting a DOS-prompt, the user will not be allowed starting explorer.exe from DOS using "start explorer.exe" when the explorer is excluded in the list.

I hope this helps you out.
I was thinking on a way to only eliminate certain files and not all of them at once, but that possibility is only available in WinNT.

If you want to automate some tasks, you may want to make a .reg file. Doubleclicking it will store the registry key/values in the registry, or delete the values.

BTW RestrictRun=1 can be deleted and the key RestrictRun can remain. That way you can easlily switch this restriction on and off. Completing the list will only have to be done once.

Regards, Abel

PS. If you've found poledit.exe, use it. It's easier to restrict access using that tool, and you'll find some other possible restrictions as well.
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1412012
thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 100
Winform not working on 64 bit machine 31 100
VIDEO DATASOURCE Control Resize issue 2 18
C# LINQ ForEach() question 6 27
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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