Windows 8 and 8.1 Forums


Are these batch files for Win 7 compatible with Win 8.1?

  1. #1

    Are these batch files for Win 7 compatible with Win 8.1?


    Hello all, I wondering if anyone can tell me whether or not these batch files that I use to clear the Event Viewer logs and to activate the extended disk cleanup prompt of windows 7 are compatible with Windows 8.1.

    -Event Viewer log clean up batch file

    @echo offFOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%VIF (%adminTest%)==(Access) goto noAdminfor /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")echo.echo goto theEnd:do_clearecho clearing %1wevtutil.exe cl %1goto :eof:noAdminexit

      My System SpecsSystem Spec

  2. #2


    -To open extended disk cleanup prompt

    cd C:\windows\system32 %SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
      My System SpecsSystem Spec

  3. #3


    Posts : 22,582
    64-bit Windows 10
      My System SpecsSystem Spec

  4. #4


    Yes! Thank's fellow, now I can finally enjoy using my laptop without worry before 'maintenance day'. Was really nervous not knowing if they worked or not, or if they would cause harm to my machine.

    Again, thank you!
    -mightierthenthesword
      My System SpecsSystem Spec

  5. #5


    Posts : 22,582
    64-bit Windows 10


    You're most welcome.
      My System SpecsSystem Spec

Are these batch files for Win 7 compatible with Win 8.1?
Related Threads
Need Batch File Help in General Support
First off, sorry if this is not posted in the right forum. I wasn't sure if it was more appropriate here or in the "Chillout Room" or elsewhere. I'm a noob when it comes to batch scripts, so I'd appreciate any help I could get. I tried doing all sorts of searches to find my answer (at least one...
Solved permissions: interactive, service & batch in User Accounts and Family Safety
Windows 8.1 64b with 3 users: administrator, standard & guest While I intended to restrict the access of guest to "public" folder, I discovered the following: For folder C:/Users/Public, I have the usual permissions: administrators, creator Owner & System, plus twice the 3 following ones:...
I have: x4 .gif images, x14 .jpg images, and x5 .png images in my C:\Users\SampleUser\Downloads\img14 folder and want to move them to these desired locations via cmd. Move the x4 .gif images to: C:\Users\SampleUser\Downloads\img14\.gif Move the x14 .jpg images to:...
DOS is not dead, at least not yet for me. However in Windows 8 a useful utility has been has now been lost with the elimination of EDIT.COM. I use batch files for a variety of purposes which are much faster than mousing through a GUI, for example to archive, backup and move files using xcopy and...
Hi, Does anyone know of any tools/utilities that I can use to put a GUI front-end to my Windows scripts (batch commands)? For example, I have a batch file now that takes a password as the parameter and then executes an EXE with that password as its parameter. I'd like to have something like...
Solved Batch file question in General Support
Hi, I'm writing a small batch file, but it doesn't show everything. Can you help? @echo offsetLocal EnableDelayedExpansion pushd "C:\Users\%username%\Desktop" type nul > "%hostname% %username%" I also want to add IP-address (and maybe leave the username out).
hi Guys, Very strange......although i am on Office 2010 X64 and have no compatibility problems with Office 2007 (X86)or Office 2003 (X86) in Windows7 i do have issues in Windows 8. I can open documents (Word or Excel) made in Office 2010, but cannot open those made in Office 2007 (Windows 8)....
Eight Forums Android App Eight Forums IOS App Follow us on Facebook