Help with simple batch file
hello,
i need create simple batch file following, how can regardless of username have many unique names?
delete file c:\upm\<username>\upm_profile\appdata\local\microsoft\windows\webcache\webcachev01.datfolders not files c:\upm\<username>\upm_profile\appdata\local\google\chrome\user data\default
delete file c:\upm\<username>\upm_profile\appdata\local\google\chrome\user data\default\chromedwritefontcache
delete folder c:\upm\<username>\upm_profile\appdata\roaming\google\cache\pepperflash\
folders not files c :\upm\<username>\upm_profile\appdata\roaming\google\cache\default
thanks
try attention !!!
::delete file c:\upm\<username>\upm_profile\appdata\local\microsoft\windows\webcache\webcachev01.dat ::all folders not files c:\upm\<username>\upm_profile\appdata\local\google\chrome\user data\default ::delete file c:\upm\<username>\upm_profile\appdata\local\google\chrome\user data\default\chromedwritefontcache ::delete folder c:\upm\<username>\upm_profile\appdata\roaming\google\cache\pepperflash\ ::all folders not files c:\upm\<username>\upm_profile\appdata\roaming\google\cache\default /f "tokens=*" %%u in ('dir /b /ad "c:\upm"') ( echo user found:%%u echo::: del "c:\upm\%%u\upm_profile\appdata\local\microsoft\windows\webcache\webcachev01.dat" echo::: del "c:\upm\%%u\upm_profile\appdata\local\google\chrome\user data\default\chromedwritefontcache" echo::: rmdir "c:\upm\%%u\upm_profile\appdata\roaming\google\cache\pepperflash\" /s /q call :deletefolderin "c:\upm\%%u\upm_profile\appdata\local\google\chrome\user data\default" call :deletefolderin "c:\upm\%%u\upm_profile\appdata\roaming\google\cache\default" gotp :eof :deletefolderin set folder="%~1" pushd %folder% || goto :eof /f "tokens=*" %%f in ('dir /b /ad') ( echo::: rmdir "%folder%" /s /q ) :goto :eof
gastone canali >http://www.armadillo.it
se alcuni post rispondono al tuo quesito(non necessariamente miei), ricorda di contrassegnarli come risposta e non dimenticare di contrassegnare anche post utili. grazie! ricorda di dare un occhio ai link click here andhere
Windows Server > Windows Server General Forum
Comments
Post a Comment