![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #11 (permalink) |
| | Re: Deleting Vista Search Folders "pvc" <pvc.35rc9z@xxxxxx-mx.forums.net> wrote in message news vc.35rc9;z@xxxxxx-mx.forums.net...Quote: > > > My automated cleanup script is working well, thanks to your help. > Perhaps you can help me with automating the task of deleting the > contents of this folder (C:\Users\myname\Recent). I can deleted the > contents manually, but I am having trouble finding an automated > solution. > Dan > is a Junction Point that points the the folder: 'C:\Users\<UserName>\AppData\Roaming\Microsoft\Windows\Recent' So try a 'del *.*' on that. -- Good Luck, Keith Microsoft MVP [Windows Shell/User] |
My System Specs![]() |
| | #12 (permalink) |
| | Re: Deleting Vista Search Folders "pvc" <pvc.35rc9z@xxxxxx-mx.forums.net> wrote in message Quote: > My automated cleanup script is working well, thanks to your help. > Perhaps you can help me with automating the task of deleting the > contents of this folder (C:\Users\myname\Recent). I can deleted the > contents manually, but I am having trouble finding an automated > solution. > Dan del /y C:\Users\Dan\Recent\*.* |
My System Specs![]() |
| | #13 (permalink) |
| Vista Home Premium 64bit | Re: Deleting Vista Search Folders Thanks again (Bob, I did that); I ended up with the following command (.cmd) file (see below). I will also look into using the Task Scheduler for further automation instead of using the Run command. PLEASE NOTE: I do not recommend this if you are using Indexing for Search! I have my indexing set to index nothing (no files, no folders, no disks). ---------- REM REM Searches REM DEL C:\Users\Dan\Searches\*.search-ms DEL /ahr C:\Users\Dan\Searches\*.search-ms REM REM Saved Games REM DEL C:\Users\Dan\Saved Games\Microsoft Games\Hearts\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\Purple Place\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\Spider Solitare\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\Chess Titans\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\FreeCell\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\InkBall\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\Mahjong Titans\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\Minesweeper\*.*ms DEL C:\Users\Dan\Saved Games\Microsoft Games\Solitare\*.*ms REM REM Recent REM ECHO Y|DEL C:\Users\Dan\AppData\Roaming\Microsoft\office\Recent DEL C:\Users\Dan\AppData\Roaming\Microsoft\Windows\Recent\*.*.* |
My System Specs![]() |
| | #14 (permalink) |
| | Re: Deleting Vista Search Folders Place the bat file in c:\ "pvc" <pvc.35rjx1@xxxxxx-mx.forums.net> wrote in message news vc.35rjx1@xxxxxx-mx.forums.net...Quote: > > Thanks again (Bob, I did that); I ended up with the following command > (.cmd) file (see below). I will also look into using the Task Scheduler > for further automation instead of using the Run command. > > PLEASE NOTE: I do not recommend this if you are using Indexing for > Search! I have my indexing set to index nothing (no files, no folders, > no disks). > ---------- > REM > REM Searches > REM > DEL C:\Users\Dan\Searches\*.search-ms > DEL /ahr C:\Users\Dan\Searches\*.search-ms > REM > REM Saved Games > REM > DEL C:\Users\Dan\Saved Games\Microsoft Games\Hearts\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\Purple Place\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\Spider Solitare\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\Chess Titans\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\FreeCell\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\InkBall\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\Mahjong Titans\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\Minesweeper\*.*ms > DEL C:\Users\Dan\Saved Games\Microsoft Games\Solitare\*.*ms > REM > REM Recent > REM > ECHO Y|DEL C:\Users\Dan\AppData\Roaming\Microsoft\office\Recent > DEL C:\Users\Dan\AppData\Roaming\Microsoft\Windows\Recent\*.*.* > > > -- > pvc |
My System Specs![]() |
| | #15 (permalink) |
| Vista Home Premium 64bit | Re: Deleting Vista Search Folders |
My System Specs![]() |
| | #16 (permalink) |
| | Re: Deleting Vista Search Folders I mean the root directory of your PC. "pvc" <pvc.35rs93@xxxxxx-mx.forums.net> wrote in message news vc.35rs93@xxxxxx-mx.forums.net...Quote: > > Bob;634755 Wrote: Quote: >> Place the bat file in c:\ >> >> > I store it in a place where I store my script commands. I used Task > Scheduler to run it at Startup time, like this: > '[image: > http://www.imagecraz.com/files/dbps9...n3g_thumb.jpg]' > (http://www.imagecraz.com/viewer.php?...hlfakkon3g.jpg) > It works great for me. Click on the image for a larger view. > > > -- > pvc |
My System Specs![]() |
| | #17 (permalink) |
| Vista Home Premium 64bit | Re: Deleting Vista Search Folders I am trying to delete the following file using an automated script (.cmd) file: C:\Users\<UserName>\AppData\Local\Microsoft\Windows Photo Gallery\Pictures.pd4 I want to automate the task of deleting this file. I can delete the file manually, but I am having trouble deleting it from a script file or from the "Run\CMD" prompt. Any suggestions? Dan Last edited by pvc; 03-25-2008 at 11:10 AM.. |
My System Specs![]() |
| | #18 (permalink) |
| | Re: Deleting Vista Search Folders This works from a cmd prompt or a batch file. attrib -r -a -s -h del [drive] path] [filename] ------- *Report back, please* [When responding to posts, please include the post(s) you are replying to so that others may learn and benefit from the issue] [How to ask a question] http://support.microsoft.com/kb/555375 "pvc" <pvc.36u2q7@xxxxxx-mx.forums.net> wrote in message news vc.36u2q7@xxxxxx-mx.forums.net...Quote: > > I am trying to delete the following file from an automated script (.cmd) > file: > > C:\Users\<UserName>\AppData\Local\Microsoft\Windows Photo > Gallery\Pictures.pd4 > > I want to automate the task of deleting this file. I can delete the > file manually, but I am having trouble deleting it from a script file or > from the "Run\CMD" prompt. > > Any suggestions? > Dan > > > -- > pvc |
My System Specs![]() |
| | #19 (permalink) |
| Vista Home Premium 64bit | Re: Deleting Vista Search Folders When I do a dir C:\Users\<UserName>\AppData\Local\Microsoft\Windows Photo Gallery I get a file not found. I can look at these files; dir C:\Users\<UserName>\AppData\Local\Microsoft but when I add the Windows Photo Gallery folder I get no access to the files. I don't understand how to use attrib -r -a -s -h??? Can you show me the exact format? |
My System Specs![]() |
| | #20 (permalink) |
| Vista Home Premium 64bit | Re: Deleting Vista Search Folders The following commands seems to work. Any way to accomplish this in one command? Probably not because you must change the attributes of the file before deleting?? CD C:\Users\Dan\AppData\Local\Microsoft\Windows Photo Gallery Attrib -r -a -s -h DEL Pictures.pd4 |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Deleting Search Results-Vista | Vista General | |||
| Deleting remnants of a VISTA search | General Discussion | |||
| Deleting old Vista folders | Vista account administration | |||
| Search and deleting files in Vista | Vista General | |||
| Deleting the Search Index in Vista Beta 2 | Vista file management | |||