|
Answer» How do I create a batch file to delete recent files in "C:\WINDOWS\Application Data\Microsoft\Office\Recent" in Windows 98 . Can anyone help me pls?Try this first. Right click a BLANK SPACE on the task bar. Select properties. Click the start menu tab. Click the clear button. Click OK.
If that doesn't do the trick, post again.Yea I tried, but only entries in "Find:All files" gets deleted". Sorry, I forgot to mention; its in Microsoft Word 2000 and I am running Windows 98. I created a batch file for deleting temporary files, cookies, history and I wanted to create to delete files in C:\WINDOWS\Application Data\Microsoft\Office\Recent. I wanted to create a batch file for this so that i don't want to go manually deleting only this.
Thanks.cd "C:\WINDOWS\Application Data\Microsoft\Office\Recent" del *.*
Add these lines to your batch file. Be sure to enclose the path in quotation marks.Thanks for ur information. Go it!
hi there this is my first time on here and I see no way to post a question for batch help.
I do have a question on a batch file if you do not mind.
I am creating this batch file below:
1. Create a batch file, Micr.bat, which will accomplish the following: a. Update a log file on your C:\root folder. Call this log file cleanup.log. Each time your batch file is run it should over-write this log file which contains the User Name (utilizing the %USERPROFILE% environmental variable), b. Merge this file onto the back-end of the file cleanup.hst which will also be stored in the C:\ root folder. c. LIST the directory contents of this TEMP folder. d. Ask for the user’s permission to proceed with the deletion of all these files. e. If the user responds positively, then delete all the files from the user’s TEMP file. f. Remember to copy the textbook’s REPLY.COM to the folder containing your batch file. g. Place this batch file in the C:\BatchFiles folder.
This is what I have come up with:
echo off rem (BAT) rem (EVA) rem (dec 2 2004)
FOR %%a IN (%USERS%) DO IF "%1"=="%%a" GOTO OKAY :NO ECHO YOU, %1, are NOT allowed in the system. GOTO END :OKAY ECHO Welcome %1 to the system. :END c:\setup.exe /L2 c:\Logfiles\cleanup.log c:\ move cleanup.log a:\cleanup.hst c:\ dir /TEMP REM This Batch program deletes all files in the TEMP folder in the current folder. REM I will give the user to react and abort this process. ECHO OFF ECHO WARNING: Going to delete all files in the temp folder ECHO Press CTRL+C to abort or SIMPLY press a key to continue. PAUSE DEL TEMP *.* c:\ copy REPLY.com C:\EVA IF %1==Eva GOTO EVA Echo Is anyone there? GOTO FINISH :end
Can you please tell me if i am on the correct track?
and how do i post to this forum? thanksInstead of: c:\ move cleanup.log a:\cleanup.hst
I recommend you: copy c:\Logfiles\cleanup.log+c:\cleanup.hst c:\cleanup.hst
Or, if it's a text file you can use also: type c:\logfiles\cleanup.log >>c:\cleanup.hst (but that if only I understand you GOOD; I quote you: "Merge this file onto the back-end of the file cleanup.hst which will also be stored in the C:\ root folder. ")
Except small mistakes like "/" instead of "\" or missing "\", your idea it's very good.
|