Quote:
Originally Posted by k9roo I'm not sure what you mean by this. |
Quote:
Originally Posted by TheOutcaste Click Start, type cmd, press CTRL+SHIFT+ENTER
(The Command Prompt window Title bar should start with Administrator:)
Type the following commands, press enter after each one
(It's not case sensitive, but there must be a space between CD and the ") CD "%userprofile%\desktop"
FixHistory |
I don't think this will do it though. It looks like the permissions have been changed so that you don't have access to the History folder.
I've attached a zip file with a shortcut that will open an Administrator Command Prompt and automatically change the current directory to the desktop of the current user, so that will make it easier for you.
Download the zip file to your desktop, double click to open. Then drag the shortcut to your desktop. You can then close and delete the zip file.
Here's what's happening:
Code:
C:\Users\MyName\Desktop>PushD C:\Users\MyName\AppData\Local\Microsoft\Windows\History
C:\Users\MyName\AppData\Local\Microsoft\Windows\History>Attrib -s -h desktop.ini
Access denied - C:\Users\MyName\AppData\Local\Microsoft\Windows\History\desktop.ini
This shows that the History folder is there, as the PushD command was successful, as shown by the
prompt. If you still don't see it when looking in My Computer, then you need to double check the settings in
Control Panel | Folder Options | View tab.
You must have
Hide protected operating system files (Recommended) unchecked, and
Show hidden files and folders selected as in screen shot 1 below.
The
desktop.ini file this batch file is trying to recreate is also set as both hidden and system. The Command Prompt has some limits with files set with these attributes, so the
attrib command is removing those settings.
The
Access Denied error indicates that your user account does not have permission to change those settings.
Code:
C:\Users\MyName\AppData\Local\Microsoft\Windows\History>If Exist desktop.ini del desktop.ini
Could Not Find C:\Users\MyName\AppData\Local\Microsoft\Windows\History\desktop.ini
And this shows one of the limits with hidden+system files. The
If Exist part can see the file, and executes the
delete command, but Delete can't see the file, so that's the cause of the
Could Not Find error.
The rest of the
Access Denied errors are because you don't have permission to access the
desktop.ini file.
If you don't have permission to access the History folder, there's no way to save history. Getting only the
Search History item (Screen shot 2) instead of the Full
History menu (screen shot 3) can be due to not having permission for the desktop.ini file,
or because it's corrupt.
So we first need to reset the permissions. Copy and paste the following into Notepad. Save it on your desktop as
FixPerm.cmd (Be sure
Save As Type: is set to
All Files)
Double click on the
Admin Command Prompt shortcut. When the Command Prompt opens, verify that the title bar starts with
Administrator, and that the prompt shows
C:\Users\MyName\Desktop>.
Type
FixPerm and press enter.
This will reset the permissions for the History folder and its contents, then will run the FixHistory.cmd file to recreate the desktop.ini file, just in case it's corrupted.
This
should get your History to working again.
Code:
PushD %LocalAppData%\Microsoft\Windows
icacls History /Reset /C /T
PopD
Call "%Userprofile%\Desktop\FixHistory.cmd"
HTH
Jerry