Punto informatico Network
Login Esegui login | Non sei registrato? Iscriviti ora (è gratuito!)
Username: Password:
  • Annuncio Pubblicitario

Pulizia pc ( file , registro ect )

Problemi con i sistemi operativi di casa Microsoft? Questa è la sezione che fa per te!

Re: Pulizia pc ( file , registro ect )

Messaggioda cippico » dom nov 18, 2012 3:31 pm

...e buon lavoro...

grazie e ciaooo
Salutone a Zane...padre putativo di MegaLab... :-)
Mio sito... http://www.cippico.altervista.org
Miei articoli sul sito MegaLab.it... http://www.MegaLab.it/staff.php?cippico
Avatar utente
cippico
Silver Member
Silver Member
 
Messaggi: 1284
Iscritto il: sab gen 25, 2003 1:57 am

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » dom nov 18, 2012 5:59 pm

Lo script non è definitivo (ho ancora in mente alcune modifiche) ma dovrebbe funzionare senza problemi da Windows XP in su; per il momento ho deciso di non unificarlo con l'altro.
Il "Mega-pulitore" rimuove tutti i dati di navigazione dei maggiori browser (cache, cookies, cronologia & co) di Microsoft Internet Explorer, Mozilla Firefox, Google Chrome, Opera e Safari, svuota le cartelle temporanee (di sistema e dell'utente), elimina i dati di auto-completamento dei vari campi (esegui & co) insieme ad altri dati temporanei.

Codice: Seleziona tutto
@echo off
REM Clear History + Temp stuff
RD /s /q "%USERPROFILE%\Recent"
RD /s /q "%USERPROFILE%\My Recent Documents"
RD /s /q "%WINDIR%\Temp"
RD /s /q "%TEMP%"

REM Clear Registry related stuff + MRU
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\FirstFolder" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRULegacy" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FindComputerMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PrnPortsMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Direct3D\MostRecentApplication" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\RecentFileList" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\MostRecentApplication" /va /f
RED DELETE "REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru" /va /f

REM Clear Microsoft Internet Explorer traces
RD /s /q "%USERPROFILE%\AppData\Local\Microsoft\Internet Explorer"
RD /s /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\History"
RD /s /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files"
RD /s /q "%APPDATA%\Microsoft\Windows\Cookies"
RD /s /q "%USERPROFILE%\Cookies"
RD /s /q "%USERPROFILE%\Local Settings\History"
RD /s /q "%USERPROFILE%\Local Settings\Temporary Internet Files"
RD /s /q "%USERPROFILE%\IETldCache"
RD /s /q "%USERPROFILE%\PrivacIE"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Microsoft\FeedsCache"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Microsoft\InternetExplorer\DOMStore"
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" /va /f

REM Clear Google Chrome traces
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data"
RD /s /q "%USERPROFILE%\AppData\Local\Google\Chrome\User Data"

REM Clear Mozilla Firefox traces
RD "%USERPROFILE%\AppData\Local\Mozilla\Firefox\Profiles"
FOR /d %%x IN (%APPDATA%\Mozilla\Firefox\Profiles\*) DO DEL /q /s /f %%x\*sqlite
RD /s /q "%APPDATA%\Mozilla\Firefox\Profiles"
FOR /d %%x IN (%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Profiles\*) DO DEL /q /s /f %%x\*sqlite

REM Clear Safari traces
RD /s /q "%USERPROFILE%\AppData\Local\Apple Computer\Safari\History"
RD /s /q "%APPDATA%\Apple Computer\Safari"
DEL /q /s /f "%USERPROFILE%\AppData\Local\Apple Computer\Safari\Cache.db"
DEL /q /s /f "%USERPROFILE%\AppData\Local\Apple Computer\Safari\WebpageIcons.db"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Apple Computer\Safari\History"
DEL /q /s /f "%USERPROFILE%\Local Settings\Application Data\Apple Computer\Safari\Cache.db"
DEL /q /s /f "%USERPROFILE%\Local Settings\Application Data\Safari\WebpageIcons.db"

REM Clear Opera traces
RD /s /q "%USERPROFILE%\AppData\Local\Opera\Opera"
RD /s /q "%APPDATA%\Opera\Opera"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Opera\Opera"

REM Clear Flash Cookies
RD /s /q "%APPDATA%\Macromedia\Flash Player"

REM Clear SUN Java Cache
RD /s /q "%APPDATA%\Sun\Java\Deployment\cache"

P.S.: Lo script è commentato.
P.S.2: Come al solito attendo il vostro parere.

[weponed]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda farbix89 » dom nov 18, 2012 6:06 pm

Funziona benissimo su Win 7 64bit [applauso+] [applauso+]

Però non cancella eventuali file nel cestino presenti su dischi esterni [uhm]

hash,merita un articoletto questo scriptino [:)]
Avatar utente
farbix89
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 14093
Iscritto il: ven feb 13, 2009 10:09 pm


Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » dom nov 18, 2012 6:23 pm

farbix89 ha scritto:Funziona benissimo su Win 7 64bit [applauso+] [applauso+]

Mi fa piacere. [^]
farbix89 ha scritto:Però non cancella eventuali file nel cestino presenti su dischi esterni [uhm]

Purtroppo al momento lo script non prevede lo "svuotamento" degli eventuali cestini presenti su dischi esterni (ho un'idea in proposito ma è difficile da implementare)
farbix89 ha scritto:hash,merita un articoletto questo scriptino [:)]
Tutto a suo tempo [fischio]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » dom nov 18, 2012 6:46 pm

Come non detto: credo che l'idea per implementare lo "svuotamento" dei cestini dei dispositivi esterni connessi al computer si stia concretizzando.

[bleh]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » lun nov 19, 2012 4:45 pm

hashcat ha scritto:è compatibile con Windows 95 e posteriori (Windows 8 Incluso).

Ho ricontrollato e lo script non è compatibile con Windows 95 e 98 (a causa della mancanza del comando findstr (introdotto per la prima volta su Windows 2000), funziona correttamente solo da Windows 2000 in su.

Nel caso fosse necessario uno script funzionante su Windows 95 e 98, basta utilizzare lo script a seguire:
Codice: Seleziona tutto
RD %SystemDrive%\RECYCLED /s /q


[^]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda sondlive07 » lun nov 19, 2012 4:50 pm

hashcat sei un mito [^]

scusami ma non ho capito bene se pulisce anche le voci nel registro ( funzione simile a quella di ccleaner 'pulisci registro')
Se fossi uno scultore ti scolpirei... Se fossi un cantautore ti canterei... Se fossi un pittore ti dipingerei... Ma sono solo un trombettista! [:)]
Avatar utente
sondlive07
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2446
Iscritto il: mar feb 02, 2010 8:52 pm
Località: casa mia

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » lun nov 19, 2012 6:03 pm

sondlive07 ha scritto:hashcat sei un mito [^]
[:D]
sondlive07 ha scritto:scusami ma non ho capito bene se pulisce anche le voci nel registro ( funzione simile a quella di ccleaner 'pulisci registro')

Si, pulisce alcune voci del registro di sistema. Appena possibile cercherò di migliorarlo aggiungendone altre.
Prima di utilizzarlo dimmi quali browser usi (per il momento lo script è un po' aggressivo ed in alcuni casi potrebbe insieme alla cache cronologia & co rimuovere le impostazioni dello stesso).

[^]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » lun nov 19, 2012 7:06 pm

hashcat ha scritto:Come non detto: credo che l'idea per implementare lo "svuotamento" dei cestini dei dispositivi esterni connessi al computer si stia concretizzando.

[bleh]

Sono riuscito ad implementare anche questa funzionalità che ha richiesto più fatica di quanto mi aspettassi.
Questo script cerca tutti i possibili dispositivi connessi al computer (dalla lettera "a" alla "z"), controlla che quelli presenti non siano unità CD-ROM e/o DVD-ROM ed infine procede allo svuotamento del cestino.

Codice: Seleziona tutto
@echo off
setLocal Enabledelayedexpansion
set cdrom=none
for %%a in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (
fsutil.exe fsinfo drivetype %%a: | find "CD-ROM" > nul && set cdrom=%%a:
IF "%%a:" NEQ "%cdrom%" (
RD /s /q "%%a:\RECYCLED"
RD /s /q "%%a:\RECYCLER"
RD /s /q "%%a:\$Recycle.Bin"
)
)


P.S.: Credo che quest'ultimo script funzioni correttamente solo da Windows XP (da verificare) in poi.

[weponed]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda crazy.cat » lun nov 19, 2012 7:49 pm

Ho messo come importante l'argomento visto la piega che ha preso (mi piace).

Chiedevo ad hashcat se era possibile fare un riassunto dei vari script e riunirli in uno solo, domani torno al lavoro e avrei vari pc "cavia" dove fare esperimenti.
Quando i molti governano, pensano solo a contentar sé stessi, si ha allora la tirannia più balorda e più odiosa: la tirannia mascherata da libertà.
Avatar utente
crazy.cat
MLI Hero
MLI Hero
 
Messaggi: 30959
Iscritto il: lun gen 12, 2004 1:38 pm
Località: Mestre

R: Pulizia pc ( file , registro ect )

Messaggioda hashcat » lun nov 19, 2012 10:31 pm

Domani pomeriggio cercherò di unirli (anche se la mia intenzione sarebbe di lasciarli separati).
Per quanto riguarda il "Mega-pulitore" dovrebbe funzionare senza problemi: l'unico inconveniente é che (al momento) é piuttosto aggressivo con i Browser (durante la fase di pulizia può rimuovere le impostazioni degli utenti).
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda sondlive07 » mar nov 20, 2012 12:10 am

hashcat ha scritto:Prima di utilizzarlo dimmi quali browser usi


firefox, opera, chrome e maxthon !
Se fossi uno scultore ti scolpirei... Se fossi un cantautore ti canterei... Se fossi un pittore ti dipingerei... Ma sono solo un trombettista! [:)]
Avatar utente
sondlive07
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2446
Iscritto il: mar feb 02, 2010 8:52 pm
Località: casa mia

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » mar nov 20, 2012 5:12 pm

Purtroppo oggi non ho proprio tempo per rimettere mano allo script.
Usa quello a seguire (ho rimosso le porzioni che toccano i browser che utilizzi):

Codice: Seleziona tutto
@echo off
REM Clear History + Temp stuff
RD /s /q "%USERPROFILE%\Recent"
RD /s /q "%USERPROFILE%\My Recent Documents"
RD /s /q "%WINDIR%\Temp"
RD /s /q "%TEMP%"

REM Clear Registry related stuff + MRU
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\FirstFolder" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRULegacy" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FindComputerMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PrnPortsMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU" /va /f
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Direct3D\MostRecentApplication" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\RecentFileList" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU" /va /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\MostRecentApplication" /va /f
RED DELETE "REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru" /va /f

REM Clear Microsoft Internet Explorer traces
RD /s /q "%USERPROFILE%\AppData\Local\Microsoft\Internet Explorer"
RD /s /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\History"
RD /s /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files"
RD /s /q "%APPDATA%\Microsoft\Windows\Cookies"
RD /s /q "%USERPROFILE%\Cookies"
RD /s /q "%USERPROFILE%\Local Settings\History"
RD /s /q "%USERPROFILE%\Local Settings\Temporary Internet Files"
RD /s /q "%USERPROFILE%\IETldCache"
RD /s /q "%USERPROFILE%\PrivacIE"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Microsoft\FeedsCache"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Microsoft\InternetExplorer\DOMStore"
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" /va /f

REM Clear Safari traces
RD /s /q "%USERPROFILE%\AppData\Local\Apple Computer\Safari\History"
RD /s /q "%APPDATA%\Apple Computer\Safari"
DEL /q /s /f "%USERPROFILE%\AppData\Local\Apple Computer\Safari\Cache.db"
DEL /q /s /f "%USERPROFILE%\AppData\Local\Apple Computer\Safari\WebpageIcons.db"
RD /s /q "%USERPROFILE%\Local Settings\Application Data\Apple Computer\Safari\History"
DEL /q /s /f "%USERPROFILE%\Local Settings\Application Data\Apple Computer\Safari\Cache.db"
DEL /q /s /f "%USERPROFILE%\Local Settings\Application Data\Safari\WebpageIcons.db"

REM Clear Flash Cookies
RD /s /q "%APPDATA%\Macromedia\Flash Player"

REM Clear SUN Java Cache
RD /s /q "%APPDATA%\Sun\Java\Deployment\cache"


[^]
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda crazy.cat » ven nov 23, 2012 2:35 pm

E' giusta questa riga?
hashcat ha scritto:RED DELETE "REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru" /va /f
Quando i molti governano, pensano solo a contentar sé stessi, si ha allora la tirannia più balorda e più odiosa: la tirannia mascherata da libertà.
Avatar utente
crazy.cat
MLI Hero
MLI Hero
 
Messaggi: 30959
Iscritto il: lun gen 12, 2004 1:38 pm
Località: Mestre

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » ven nov 23, 2012 3:19 pm

crazy.cat ha scritto:E' giusta questa riga?

No, devo aver commesso qualche svista con lo script di automazione di Notepad++.

Riga corretta:
Codice: Seleziona tutto
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru" /va /f

[acc2]

P.S.: Oltre a questo hai riscontrato problemi / miglioramenti dopo aver eseguito lo script?
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: Pulizia pc ( file , registro ect )

Messaggioda crazy.cat » ven nov 23, 2012 4:51 pm

hashcat ha scritto:P.S.: Oltre a questo hai riscontrato problemi / miglioramenti dopo aver eseguito lo script?

Nel mio primo cmd che hai modificato ha preso dei caratteri sporchi &#39 e quindi il cmd non funziona.

Anche quello della pulizia dei cestini non mi sembra che vada benissimo, va a cercare il disco nel lettore cd, generando degli errori di periferica non pronta, poi una fila di percorsi non trovati (ma quelli ci possono stare). Provato su due pc con windows xp.
Quando i molti governano, pensano solo a contentar sé stessi, si ha allora la tirannia più balorda e più odiosa: la tirannia mascherata da libertà.
Avatar utente
crazy.cat
MLI Hero
MLI Hero
 
Messaggi: 30959
Iscritto il: lun gen 12, 2004 1:38 pm
Località: Mestre

R: Pulizia pc ( file , registro ect )

Messaggioda hashcat » ven nov 23, 2012 5:44 pm

Premetto che al momento sono su Tapatalk quindi ho una possibilità di intervento ridotta.
Qual'é lo script che si é sporcato?
Per lo svuotamento del cestino dei dischi (interni ed esterni) hai utilizzato QUESTO (quest'ultimo scritp utilizza proprio una funzione per ovviare all'errore causato dalla periferica cd-rom)?
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

Re: R: Pulizia pc ( file , registro ect )

Messaggioda crazy.cat » ven nov 23, 2012 7:35 pm

hashcat ha scritto:Qual'é lo script che si é sporcato?

post639895.html#p639895

hashcat ha scritto:Per lo svuotamento del cestino dei dischi (interni ed esterni) hai utilizzato QUESTO (quest'ultimo scritp utilizza proprio una funzione per ovviare all'errore causato dalla periferica cd-rom)?

si ho usato quello.
Quando i molti governano, pensano solo a contentar sé stessi, si ha allora la tirannia più balorda e più odiosa: la tirannia mascherata da libertà.
Avatar utente
crazy.cat
MLI Hero
MLI Hero
 
Messaggi: 30959
Iscritto il: lun gen 12, 2004 1:38 pm
Località: Mestre

Re: Pulizia pc ( file , registro ect )

Messaggioda hashcat » ven nov 23, 2012 8:44 pm

Script pulito:
Codice: Seleziona tutto
Set "RegKey=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
set "regkey2=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\shell folders"

call:getspecialfolders "Cache, History, Cookies"

For /f "tokens=*" %%? in (
'Reg.exe QUERY "%RegKey%" ^|findstr /ric:"\S-1-5-21-[0-9]*-[0-9]*-[0-9]*-[0-9]*$"'
) do (
For /f "tokens=2,*" %%A in (
'Reg.exe QUERY "%%?" /v ProfileImagePath ^|find /i "ProfileImagePath"'
) do call:Go %%B
)

start ""/w "%windir%\system32\RunDll32.exe" InetCpl.cpl,ClearMyTracksByProcess 255

:end ***

goto:EOF
:Go
call Set "Target=%*"
If EXIST "%Target%" call:Clear "%Target%"
exit /b 0

:Clear
REM echo.&echo.%~1\%$$Cache%
pushD "%~1\%$$Cache%" &&(
rmdir /S /Q .
popD)

REM echo.&echo.%~1\%$$History%
pushD "%~1\%$$History%" &&(
rmdir /S /Q .
popD)

REM echo.&echo.%~1\%$$Cookies%
pushD "%~1\%$$Cookies%" &&(
rmdir /S /Q .
popD)

IF "%$$temp%"=="%$$temp:*:=%" (SET "tmppath=%~1\%$$temp%") ELSE SET "tmppath=%$$temp%"
ECHO.&echo.%tmppath%
pushD "%tmppath%" &&(
rmdir /S /Q .
popD)
exit /b 0

:getspecialfolders
Set "FoldersToClear=%~1"

For %%* in (%FoldersToClear%) Do (
For /f "tokens=2,*" %%A in (
'reg.exe query "%regkey2%" /v %%* ^|find /i "%%~*"'
) do Call:sf1 "%%~B" "%%~*"
)
Call:sf2 "%temp%" "temp" "%userprofile%"
exit /b 0

:sf1
Call set "sf=%~1"
Call set "$$%~2=%%sf:%userprofile%\=%%"
exit /b 0

:sf2
Call set "sf=%~1"
call Set "usr=%~dpns3"
Call set "$$%~2=%%sf:%usr%\=%%"
exit /b 0

Per quanto riguarda lo script che svuota i cestini, l'ho provato su Windows 7 e funziona senza problemi (è prevista una funzione che evita l'errore del CD-ROM), mi sorge un unico dubbio: l'hai eseguito con privilegi d'amministratore? Se si, probabilmente xp (XXXXXX edition) non è dotato di fsutil.
Per verificare quest'ultima eventualità ti basta aprire da un account amministratore il prompt dei comandi ed impartire il comando fsutil (vedendo se succede qualcosa).

[fischio]

P.S.: Gentilmente puoi provare quest'ultimo script (svuotamento dei cestini) su Windows Vista / 7 / 8 (il sistema operativo che usi), grazie.
<<Intelligence is the ability to avoid doing work, yet getting the work done.>>
Linus Torvalds

EX [MLI] Power User.
Avatar utente
hashcat
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 2285
Iscritto il: lun ott 25, 2010 1:26 pm

R: Pulizia pc ( file , registro ect )

Messaggioda Al3x » ven nov 23, 2012 9:24 pm

Per le operazioni pianificate consiglio l'uso delle credenziali dell'utente system in modo da evitare che l'eventuale cambio password dell'amministratore impedisca al task di partire.
è primavera finalmente! [:)]
Avatar utente
Al3x
Membro Ufficiale (Gold)
Membro Ufficiale (Gold)
 
Messaggi: 7418
Iscritto il: sab gen 10, 2009 12:51 pm
Località: http://127.0.0.1/

PrecedenteProssimo

Torna a Sistema Operativo

Chi c’è in linea

Visitano il forum: Nessuno e 3 ospiti

cron
Powered by phpBB © 2002, 2005, 2007, 2008 phpBB Group
Traduzione Italiana phpBB.it

megalab.it: testata telematica quotidiana registrata al Tribunale di Cosenza n. 22/09 del 13.08.2009, editore Master New Media S.r.l.; © Copyright 2008 Master New Media S.r.l. a socio unico - P.I. 02947530784. GRUPPO EDIZIONI MASTER Spa Tutti i diritti sono riservati. Per la pubblicità: Master Advertising