powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Windows [игнор отключен] [закрыт для гостей] / Где хранится перечень последних 15ти открытых документов?
10 сообщений из 10, страница 1 из 1
Где хранится перечень последних 15ти открытых документов?
    #33275096
Фотография Serega128
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Т.е. где хранится список последних 15ти открытых документов(Пуск->Документы) в разных версиях Винды? Нужны полные пути.
Заранее спасибо!
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33275402
вадя
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
в ворде создай документ с уникальным именем сохрани его
а потом поиском найди на диске, и в реестре
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33275794
Фотография rrrrrrrrrr
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
X:\Documents and Settings\имя профиля\Recent - для XP/2000/2003
X:\%windir%\recent - 95/98/Me
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33276981
Фотография Serega128
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
А в реестре этого нету? А то предварительно нужно текущий профиль искать...(прогу пишу)_
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33276999
Фотография rrrrrrrrrr
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation(;

    HWND hwndOwner, 	
    int nFolder, 	
    LPITEMIDLIST *ppidl	
   );	
 

Parameters

hwndOwner

Handle of the owner window that the client should specify if it displays a dialog box or message box.

nFolder

Value specifying the folder to retrieve the location of. This parameter can be one of the following values:

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.
 

ppidl

Address that receives a pointer to an item identifier list specifying the folder's location relative to the root of the name space (the desktop).

 

Return Values

Returns NOERROR if successful or an OLE-defined error result otherwise.
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33286594
Pain Of Salvation
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
А кто знает, как вообще убрать эту хрень ? В плане что бы не показывало ничего в Пуск->Документы .....
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33286732
Фотография rrrrrrrrrr
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Посмотрите Пуск-Выполнить-gpedit.msc - User Configutation - Administrative Templates, там точно есть.
Или грубее:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
SetValue "NoRecentDocsHistory"=dword:00000001 (1)
или изменить количество до 1:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
SetValue "MaxRecentDocs"=dword:00000001 (1)
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33290111
Фотография Serega128
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Дык...
в той директории столько всего навалено, тем более одни ярлычки. А мне нужно по ним к файлу добраться.
Ламером не называть - я прогу пишу, а формат ярлычка весьма странный. У кого какие идеи есть?
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33290172
Фотография rrrrrrrrrr
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
С Дельфи не идеи нужны, а Яндекс :)
Вот пример с DelphiWorld:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
Получаем информацию о ярлыке 
--------------------------------------------------------------------------------
 uses  
  ShlObj, 
  ComObj, 
  ActiveX, 
  CommCtrl; 

 type  
  PShellLinkInfoStruct = ^TShellLinkInfoStruct; 
  TShellLinkInfoStruct =  record  
    FullPathAndNameOfLinkFile:  array [ 0 ..MAX_PATH]  of  Char; 
    FullPathAndNameOfFileToExecute:  array [ 0 ..MAX_PATH]  of  Char; 
    ParamStringsOfFileToExecute:  array [ 0 ..MAX_PATH]  of  Char; 
    FullPathAndNameOfWorkingDirectroy:  array [ 0 ..MAX_PATH]  of  Char; 
    Description:  array [ 0 ..MAX_PATH]  of  Char; 
    FullPathAndNameOfFileContiningIcon:  array [ 0 ..MAX_PATH]  of  Char; 
    IconIndex: Integer; 
    HotKey: Word; 
    ShowCommand: Integer; 
    FindData: TWIN32FINDDATA; 
   end ; 

 procedure  GetLinkInfo(lpShellLinkInfoStruct: PShellLinkInfoStruct); 
 var  
  ShellLink: IShellLink; 
  PersistFile: IPersistFile; 
  AnObj: IUnknown; 
 begin  
   // access to the two interfaces of the object  
  AnObj       := CreateComObject(CLSID_ShellLink); 
  ShellLink   := AnObj  as  IShellLink; 
  PersistFile := AnObj  as  IPersistFile; 

   // Opens the specified file and initializes an object from the file contents.  
  PersistFile.Load(PWChar(WideString(lpShellLinkInfoStruct^.FullPathAndNameOfLinkFile)),  0 ); 
   with  ShellLink  do  
   begin  
     // Retrieves the path and file name of a Shell link object.  
    GetPath(lpShellLinkInfoStruct^.FullPathAndNameOfFileToExecute, 
      SizeOf(lpShellLinkInfoStruct^.FullPathAndNameOfLinkFile), 
      lpShellLinkInfoStruct^.FindData, 
      SLGP_UNCPRIORITY); 

     // Retrieves the description string for a Shell link object.  
    GetDescription(lpShellLinkInfoStruct^.Description, 
      SizeOf(lpShellLinkInfoStruct^.Description)); 

     // Retrieves the command-line arguments associated with a Shell link object.  
    GetArguments(lpShellLinkInfoStruct^.ParamStringsOfFileToExecute, 
      SizeOf(lpShellLinkInfoStruct^.ParamStringsOfFileToExecute)); 

     // Retrieves the name of the working directory for a Shell link object.  
    GetWorkingDirectory(lpShellLinkInfoStruct^.FullPathAndNameOfWorkingDirectroy, 
      SizeOf(lpShellLinkInfoStruct^.FullPathAndNameOfWorkingDirectroy)); 

     // Retrieves the location (path and index) of the icon for a Shell link object.  
    GetIconLocation(lpShellLinkInfoStruct^.FullPathAndNameOfFileContiningIcon, 
      SizeOf(lpShellLinkInfoStruct^.FullPathAndNameOfFileContiningIcon), 
      lpShellLinkInfoStruct^.IconIndex); 

     // Retrieves the hot key for a Shell link object.  
    GetHotKey(lpShellLinkInfoStruct^.HotKey); 

     // Retrieves the show (SW_) command for a Shell link object.  
    GetShowCmd(lpShellLinkInfoStruct^.ShowCommand); 
   end ; 
 end ; 

 procedure  TForm1.Button1Click(Sender: TObject); 
 const  
  br = # 13 # 10 ; 
 var  
  LinkInfo: TShellLinkInfoStruct; 
  s:  string ; 
 begin  
  FillChar(LinkInfo, SizeOf(LinkInfo), # 0 ); 
  LinkInfo.FullPathAndNameOfLinkFile := 'C:\WINNT\Profiles\user\Desktop\FileName.lnk'; 
  GetLinkInfo(@LinkInfo); 
   with  LinkInfo  do  
    s := FullPathAndNameOfLinkFile + br + 
      FullPathAndNameOfFileToExecute + br + 
      ParamStringsOfFileToExecute + br + 
      FullPathAndNameOfWorkingDirectroy + br + 
      Description + br + 
      FullPathAndNameOfFileContiningIcon + br + 
      IntToStr(IconIndex) + br + 
      IntToStr(LoByte(HotKey)) + br + 
      IntToStr(HiByte(HotKey)) + br + 
      IntToStr(ShowCommand) + br + 
      FindData.cFileName + br + 
      FindData.cAlternateFileName; 
  Memo1.Lines.Add(s); 
 end ;

 
...
Рейтинг: 0 / 0
Где хранится перечень последних 15ти открытых документов?
    #33290285
Фотография Serega128
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Прога рульная, только мне на АРI надобно, ну или стандартными средствами С++Билдер(Делфи). Но в любом случае спасибо!
...
Рейтинг: 0 / 0
10 сообщений из 10, страница 1 из 1
Форумы / Windows [игнор отключен] [закрыт для гостей] / Где хранится перечень последних 15ти открытых документов?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]