Want to create a Set of command line for maintanence

Harshvardhan Rajesh Vyas 1 Reputation point
2021-07-12T03:41:55.077+00:00

Dear community

I want a small help from you

In there anybody who can guide me in creating a Set of command line (I think it means a .bat file)

DISM /Online /Cleanup-Image /RestoreHealth

Sfc /scannow

wuauclt /detectnow /updatenow

cd/

del /s *.tmp & del /S *.bak & del /S *.old

Exit

I also want the command line for deleting the Contents of

C:\Windows\System32\temp

C:\Users\<User name>\Recent

C:\Windows\Prefetch

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,428 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,551 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Harshvardhan Rajesh Vyas 1 Reputation point
    2021-07-12T05:46:53.203+00:00

    Can any body please help me here??
    PLease

    0 comments No comments

  2. Docs 15,146 Reputation points
    2021-07-12T05:53:46.957+00:00

    If you are able to logon to Ten Forums or Windows Questions these are available bat files:

    https://www.tenforums.com/bsod-crashes-debugging/162488-batch-files-use-bsod-debugging.html
    https://www.windowsq.com/resources/batch-scripts.14/

    See:
    https://www.tenforums.com/bsod-crashes-debugging/162488-batch-files-use-bsod-debugging.html#post1994120
    https://www.tenforums.com/bsod-crashes-debugging/162488-batch-files-use-bsod-debugging-2.html#post2177966

    Also:
    https://www.tenforums.com/performance-maintenance/155388-batch-scripts-programs.html

    .
    .
    .
    .
    Please remember to vote and to mark the replies as answers if they help.

    On the bottom of each post there is:

    Propose as answer = answered the question

    On the left side of each post: Vote = a helpful post
    .
    .
    .
    .

    0 comments No comments