Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Search the Community

Showing results for tags 'clean'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • The General Stuff
    • Announcements
    • Introduce Yourself!
    • General Discussion
  • Microsoft Software Products
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Server 2008/2012/2016
    • Older Windows NT-Family OSes
    • Windows 9x/ME
    • Other Microsoft Products
  • Unattended Windows Discussion & Support
    • Unattended Windows
    • Other Unattended Projects
  • Member Contributed Projects
    • Nuhi Utilities
    • Member Projects
    • Other Member Contributed Projects
    • Windows Updates Downloader
  • Software, Hardware, Media and Games
    • Forum Categories
    • Mobile Devices
  • Customizing Windows and Graphics
    • Customizing Windows
    • Customizing Graphics
  • Coding, Scripting and Servers
    • Web Development (HTML, Java, PHP, ASP, XML, etc.)
    • Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
    • Server - Side Help (IIS, Apache, etc.)
  • X's Concepts
  • The Compaq Computer Corporation Club's Discussion

Calendars

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 1 result

  1. Hi guys. I need a little help here. I was searching for some batch script to do some tasks on windows 7, 8 and 10 machines and I found some interesting topic. I grab the script and I made some changes. Now I need to make the script to work and I need your help to make the changes I wrote on the script itself. If possible, please, jaclass or somebody else, help me.. The sketch for the script is: IMPORTANT: Whe the user run this script it must get elevate privilegies automaticaly (as run as administrator do). ECHO """BATCH SCRIPT TO CLEAN THINGS!!! "This script will clean things from your computer. Press Y to continue or N to cancel.." If the user type Y then show the message above and continue with the script: "Message: Doing the things. This can take a little.." @ECHO OFF SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION SET /A Counter=0 FOR %%A IN ( "c:\windows\prefetch\*.*" "c:\windows\temp\*.*" "c:\windows\tmp\*.*" "c:\tmp\*.*" "c:\temp\*.*" "c:\WINDOWS\ShellIconCache\*.*" "c:\Users\%username%\AppData\Roaming\Microsoft\Windows\Recent Items\*.*" "%userprofile%\Cookies\*.*" "%UserProfilePath%\Local Settings\Temp\" "%UserProfilePath%\Local Settings\Temporary Internet\*.*" "%UserProfilePath%\Application Data\Sun\Java\Deployment\cache\*.*" "%UserProfilePath%\AppData\LocalLow\Sun\Java\Deployment\cache\*.*" "%UserProfilePath%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" "%UserProfilePath%\AppData\Local\Temp\*.*" "%UserProfilePath%\AppData\LocalLow\Temp\*.*" "%homepath%\Appdata\Local\Temp\*.*" "c:\temp\*.*" "%homepath%\Local Settings\Temporary Internet Files\*.*" "%homepath%\Local Settings\Temp\*.* ) DO ( CALL :do_count %%A CALL :do_del %%A ) GOTO :EOF :do_count FOR /F %%B IN ('dir /b %1') DO ( SET /A Counter+=1 ECHO !Counter! ) GOTO :EOF :do_del ECHO del %1 GOTO :EOF When everything is done show a message to the user asking him to reboot the system: "Message: All task where done. Now, please, type R to reboot the computer or L to do it later.." Thats it. If mistakes where made, please correct and show me whats wrong so I can learn too. DEdit.: OH!!! It would be nice if the script could show messages when the task get done, one by one, like: Clean of "c:\windows\temp\*.*": DONE! Clean of ""c:\windows\tmp\*.*": DONE! and so on... :3
×
×
  • Create New...