Solved

accessing folder

Posted on 2001-06-21
4
161 Views
Last Modified: 2013-11-18
Where are some folders in windows like my documents,my pictures which have special icons and some plugin to view those files.

those folders contains hidden desktop.ini file.

My question is how to make my own program for specified folder.
0
Comment
Question by:f15iaf
4 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 6213447
It's in registry check: \Software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders
this RegKey might slightly differ for Win9x and WinNT/Win2K
ziolko.
0
 
LVL 3

Expert Comment

by:smurff
ID: 6214550
I dont know if this is what you want but its really usefull anyway
regards
Smurff


var
   p : pitemidlist;
   pc : pchar;
begin
   SHGetSpecialFolderLocation (Form1.handle, CSIDL_PROGRAMS, p);
   new (pc);
   getmem (pc, 255);
   SHGetPathFromIDList (p, pc);
//   pc now contains path to C:\Program Files\
end;

Posssible arguments for SHGetSpecialFolderLocation are:

CSIDL_BITBUCKET Recycle bin - file system directory containing file objects in the user's recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it
CSIDL_CONTROLS     Control Panel - virtual folder containing icons for the control panel applications.
CSIDL_DESKTOP     Windows desktop - virtual folder at the root of the name space.
CSIDL_DESKTOPDIRECTORY      File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).
CSIDL_DRIVES     My Computer - virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives.
CSIDL_FONTS     Virtual folder containing fonts.
CSIDL_NETHOOD     File system directory containing objects that appear in the network neighborhood.
CSIDL_NETWORK     Network Neighborhood - virtual folder representing the top level of the network hierarchy.
CSIDL_PERSONAL     File system directory that serves as a common respository for documents.
CSIDL_PRINTERS     Printers folder - virtual folder containing installed printers.
CSIDL_PROGRAMS     File system directory that contains the user's program groups (which are also file system directories).
CSIDL_RECENT     File system directory that contains the user's most recently used documents.
CSIDL_SENDTO     File system directory that contains Send To menu items.
CSIDL_STARTMENU     File system directory containing Start menu items.
CSIDL_STARTUP     File system directory that corresponds to the user's Startup program group.
CSIDL_TEMPLATES     File system directory that serves as a common repository for document templates.
0
 
LVL 3

Author Comment

by:f15iaf
ID: 7198941
No body answered the answer i wanted the problem is still not solved thus i'm deleting this question
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7198978
Hi f15iaf,

Since there is something in this thread that could help others i move it to PAQ and refund your points

btw next time work together with the experts give them a reason why their comments did not work. Though some are good there are no mindreaders on this forum.

**JGould-Ee Moderator**
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

22 Experts available now in Live!

Get 1:1 Help Now