Re: GRAHAM MAYOR - Re: Macro in Normal.dot prevents Word opening



As far a batch files go, this is one I use to delete the annoying temp
files.

@echo off
cd /d "c:\"
if /i "%cd%"=="C:\" del /s /f /q ~*.do? 1>nul 2>&1

It changes to the root of c: drive then recursively deletes temp files
without echoing to the screen. Run via a Task Scheduler to keep you
c: drive clean.

HTHs
Cheers
Shane


On Thu, 3 May 2007 09:00:58 +0300, "Graham Mayor"
<gmayor@xxxxxxxxxxxxxxxxxx> wrote:

Basically the batch file is intended to simplify the removal of temporary
files left when Word crashes.
The temporary files are created in any document folder related to an open
document
The user template folder (tools > options > file locations > user templates)
The Word startup folder (tools > options > file locations > startup)
The Office startup folder (C:\Program Files\Microsoft
Office\Office11\Startup)
The Windows Temp folder (C:\Documents and Settings\<username>\Local
Settings\Temp)
and any folder related to an add-in in use (eg SnagIt).
If you are creating the batch file (which is more convenient than essential)
you need to identify each folder that contains the files that need to be
moved on your PC and insert the paths in the batch file.
If you are uncomfortable with DOS, as an alternative to creating the batch
you could simply search with Windows Explorer for
~*.do?
.



Relevant Pages

  • Re: Temp files
    ... So, a batch file would have to delete the content of the sub-directories first, and then the directories themselves. ... I am still looking for a clean-up tool for the temp sub-directory, or a setting in windows that performs the cleanup. ... Ah yes DR Dos, the non-Microsoft/non-IBM disk operating system alternative. ... Put a shortcut to the batch file in your Startup folder and it will clean your temp folder on startup. ...
    (microsoft.public.windowsxp.general)
  • Re: Fax service, aloert when folder populated
    ... > I was hopeing I could get a batch file that sends a net ... > folder, see's something new is there and sends a net send ... It ignores old faxes, so you can delete ... if exist temp rd /s /q temp ...
    (microsoft.public.windows.server.general)
  • Re: Lost the .pub file, what now?
    ... folder lately, it will be in that folder too. ... Publisher will create temp files, your file may be in the Windows temp folder. ...
    (microsoft.public.publisher)
  • Re: Folders in "Windows Temp"
    ... Windows /Temp folder upon restart. ... Create a batch file to clean the temp folder and place a shortcut to it ...
    (microsoft.public.windowsxp.general)
  • Re: Temporary files accumulating
    ... If you want help with Error Report this extract from my post 2 days ago may ... At each bootup and at the same time as the "permanent" temp ... though I don't know how to fix it) I took a look at the temp folder in my ... 20 or more of these accumulating in the Temp folder. ...
    (microsoft.public.windowsxp.general)