Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: A Batch file to bypass adminstrator popup [Prefetch folder] ~

20 Dec 2013   #1
Jailbird

Windows 8.1 Enterprise RTM [x86]
 
 
A Batch file to bypass adminstrator popup [Prefetch folder] ~

Hello again guys!

As I mentioned in the thread title, I want to make a .bat file that can delete each file and folder inside C:\Windows\Prefetch ~ I actually made one but it can't delete any thing in Prefetch folder until I open the folder, seeing that annoying popup below and click continue, the problem itself that the .bat which I made can't get access inside the folder, when I open the folder for the 1st time it telling me you don't have permission to.. but when that popup appears and I click continue then when I open the .bat file it deletes everything there. I want to create a .bat file which can > bypass that popup and delete Prefetch folder content.




My System SpecsSystem Spec
.
20 Dec 2013   #2
LMiller7

Windows 7 Pro 64 bit
 
 

I don't believe this is possible without disabling UAC and that is not recommended.
But really, why are you wanting to delete the contents of the prefetch folder? The idea that this is beneficial is a myth based on a misunderstanding of how prefetch works. It will actually impair performance. Unless you really understand what you are doing the Windows folder and all of it's sub folders should be considered off limits for deletion.
My System SpecsSystem Spec
21 Dec 2013   #3
Jailbird

Windows 8.1 Enterprise RTM [x86]
 
 

Thx Miller for your reply. Could you tell me how can I disable UAC for that folder?! .. Even Take Ownership can't do it permanently, I mean when I take own of the folder with Take Ownership it takes ownership for only one time but when I restart Windows and go to the folder again the same popup appears! .. Yeah I understand what I'm doing but I really need a way to delete its contents without opening it like %temp% folder, I have a .bat file which can delete all %temp% folder contents without opening the folder. The main problem boils down in bypassing UAC of that folder by a .bat file.
My System SpecsSystem Spec
.

Reply

 A Batch file to bypass adminstrator popup [Prefetch folder] ~




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
create a popup reminder using batch file
Hi there, In XP I used 2 batch files to create a popup reminder in a cmd window. I don't want to use a program like task manager as it requires to much input for the type of reminder I want. With these batch files I would run one of them, enter a time, enter a description and that was it. A cmd...
General Discussion
I need a batch file to open a random file within a certain folder/path
I want a batch to select and open a random link file in a folder i have. All the links are music videos I like to listen to, and I kind of want to just have an option for 'surprise me!'. I can change the file names if I have to, and I have a basic batch file ability. I know the simple commands,...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
batch file open file for program in the startup folder
I have a computer that is a drone specifically for an outside LED sign. This computer is designed to never shut off and doesn't have any other program on it besides Operating System and the sign software. I need to create a batch file that I can place in the "start-up" folder that will open the...
General Discussion
Batch file to create a folder with name of the time.
I'm trying to write a batch file that when run creates a folder named "Backup" followed by the time it was created, and then copies files to that folder. When I run md "C:\Users\MasterControlProgram\Documents\MC Server With Backup\Backups\Backup %DATE%\" xcopy /e /v /y...
Backup and Restore
Batch File to Open ALL Links in Folder
I have a few LNK files in the same folder and would like to write a batch file that opens all of these links without explicitly having each link listed in the batch file. Is there a way to open all links in one folder? I would presume so, considering Windows has for the most part always had a...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:17.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App