begin process at 2012 02 15 09:16:30
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Fichier / Disque

 > CLEANER

CLEANER


 Information sur la source

Note :
5 / 10 - par 1 personne
5,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Fichier / Disque Niveau :Débutant Date de création :25/07/2002 Date de mise à jour :25/07/2002 23:56:43 Vu :4 918

Auteur : hacktivity

Ecrire un message privé
Site perso
Commentaire sur cette source (1)
Ajouter un commentaire et/ou une note

 Description

Voila un bout de code de cleaner

Source

  • Dim fso As FileSystemObject
  • Private Sub Command1_Click()
  • Set fso = CreateObject("Scripting.FileSystemObject")
  • Set conf = fso.CreateTextFile("C:\confus.txt")
  • conf.WriteLine "user"
  • conf.WriteLine Drive.Drive
  • conf.WriteLine user.Text
  • Form1.Show
  • Unload Me
  • End Sub
  • Private Sub Command2_Click()
  • If Text1.Text = "letmestart" Then Command1.Enabled = True
  • End Sub
  • Private Sub Form_Load()
  • On Error Resume Next
  • Dim fso As FileSystemObject
  • Set fso = CreateObject("Scripting.FileSystemObject")
  • Set a = fso.OpenTextFile("C:\confus.txt")
  • v.Text = a.ReadLine
  • If v.Text = "user" Then Form1.Show: Unload Me
  • End Sub
  • _______________________
  • 2___________________________
  • Dim fso As FileSystemObject
  • Private Sub c_Click()
  • End
  • End Sub
  • Private Sub Check1_Click()
  • Set fso = CreateObject("Scripting.FileSystemObject")
  • Set fs = fso.CreateTextFile("C:\log.txt")
  • If Check1.Value = 1 Then fs.WriteLine "NO DELETE. CHECKED 1" Else fs.WriteLine "no"
  • End Sub
  • Private Sub Command2_Click()
  • On Error Resume Next
  • Dim Drive, user As String
  • Dim template, owp, tif, dpf As String
  • Set fso = CreateObject("Scripting.FileSystemObject")
  • Set lire = fso.OpenTextFile("C:\confus.txt")
  • Set tete = fso.GetSpecialFolder(2)
  • ff.Text = lire.ReadLine
  • Drive = lire.ReadLine
  • user = lire.ReadLine
  • template = Drive & "\Documents and Settings\" & user & "\Templates"
  • owp = Drive & "\WINDOWS\Offline Web Pages"
  • tif = Drive & "\Documents and Settings\" & user & "\Local Settings\Temporary Internet Files\Content.IE5"
  • dpf = Drive & "\WINDOWS\Downloaded Program Files"
  • t.Text = template
  • stat.Caption = "Deleting...templates"
  • fso.DeleteFolder template, True
  • p.Value = 10
  • stat.Caption = "Recreating...templates"
  • fso.CreateFolder template
  • p.Value = 20
  • stat.Caption = "Deleting...temp"
  • fso.DeleteFolder tete, True
  • p.Value = 30
  • stat.Caption = "Recreating...temp"
  • fso.CreateFolder tete
  • p.Value = 40
  • stat.Caption = "Deleting...OfflineWebPages"
  • fso.DeleteFolder owp, True
  • p.Value = 50
  • stat.Caption = "Recreating...OfflineWebPages"
  • fso.CreateFolder owp
  • p.Value = 60
  • stat.Caption = "Deleting...TemporaryInternetFiles"
  • fso.DeleteFolder tif, True
  • p.Value = 70
  • stat.Caption = "Recreating...TemporaryInternetFiles"
  • fso.CreateFolder tif
  • p.Value = 80
  • stat.Caption = "Deleting...DownloadFile"
  • fso.DeleteFolder dpf, True
  • p.Value = 90
  • stat.Caption = "Recreating...DownloadFile"
  • fso.CreateFolder dpf
  • p.Value = 100
  • stat.Caption = "Finish"
  • Beep
  • c.Visible = True
  • End Sub
  • Private Sub Form_Load()
  • On Error Resume Next
  • Set fso = CreateObject("Scripting.FileSystemObject")
  • Set oo = fso.OpenTextFile("C:\log.txt")
  • ta.Text = oo.ReadLine
  • If ta.Text = "NO DELETE. CHECKED 1" Then Check1.Value = 1
  • If ta.Text = "NO DELETE. CHECKED 1" Then Command2_Click: Command2.Enabled = False
  • End Sub
Dim fso As FileSystemObject
Private Sub Command1_Click()
Set fso = CreateObject("Scripting.FileSystemObject")
Set conf = fso.CreateTextFile("C:\confus.txt")
conf.WriteLine "user"
conf.WriteLine Drive.Drive
conf.WriteLine user.Text
Form1.Show
Unload Me
End Sub

Private Sub Command2_Click()
If Text1.Text = "letmestart" Then Command1.Enabled = True
End Sub

Private Sub Form_Load()
On Error Resume Next
Dim fso As FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.OpenTextFile("C:\confus.txt")
v.Text = a.ReadLine
If v.Text = "user" Then Form1.Show: Unload Me
End Sub
_______________________
2___________________________
Dim fso As FileSystemObject
Private Sub c_Click()
End
End Sub

Private Sub Check1_Click()
Set fso = CreateObject("Scripting.FileSystemObject")
Set fs = fso.CreateTextFile("C:\log.txt")
If Check1.Value = 1 Then fs.WriteLine "NO DELETE. CHECKED 1" Else fs.WriteLine "no"
End Sub

Private Sub Command2_Click()
On Error Resume Next
Dim Drive, user As String
Dim template, owp, tif, dpf As String
Set fso = CreateObject("Scripting.FileSystemObject")
Set lire = fso.OpenTextFile("C:\confus.txt")
Set tete = fso.GetSpecialFolder(2)
ff.Text = lire.ReadLine
Drive = lire.ReadLine
user = lire.ReadLine
template = Drive & "\Documents and Settings\" & user & "\Templates"
owp = Drive & "\WINDOWS\Offline Web Pages"
tif = Drive & "\Documents and Settings\" & user & "\Local Settings\Temporary Internet Files\Content.IE5"
dpf = Drive & "\WINDOWS\Downloaded Program Files"
t.Text = template
stat.Caption = "Deleting...templates"
fso.DeleteFolder template, True
p.Value = 10
stat.Caption = "Recreating...templates"
fso.CreateFolder template
p.Value = 20
stat.Caption = "Deleting...temp"
fso.DeleteFolder tete, True
p.Value = 30
stat.Caption = "Recreating...temp"
fso.CreateFolder tete
p.Value = 40
stat.Caption = "Deleting...OfflineWebPages"
fso.DeleteFolder owp, True
p.Value = 50
stat.Caption = "Recreating...OfflineWebPages"
fso.CreateFolder owp
p.Value = 60
stat.Caption = "Deleting...TemporaryInternetFiles"
fso.DeleteFolder tif, True
p.Value = 70
stat.Caption = "Recreating...TemporaryInternetFiles"
fso.CreateFolder tif
p.Value = 80
stat.Caption = "Deleting...DownloadFile"
fso.DeleteFolder dpf, True
p.Value = 90
stat.Caption = "Recreating...DownloadFile"
fso.CreateFolder dpf
p.Value = 100
stat.Caption = "Finish"
Beep
c.Visible = True
End Sub


Private Sub Form_Load()
On Error Resume Next
Set fso = CreateObject("Scripting.FileSystemObject")
Set oo = fso.OpenTextFile("C:\log.txt")
ta.Text = oo.ReadLine
If ta.Text = "NO DELETE. CHECKED 1" Then Check1.Value = 1
If ta.Text = "NO DELETE. CHECKED 1" Then Command2_Click: Command2.Enabled = False
End Sub

 Conclusion

rulezz


 Sources de la même categorie

Source avec Zip Source .NET (Dotnet) MODIFIER LES EXTENSION DES FICHIERS par okosa
ROUTINE DIR RÉCURSIVE POUR OBTENIR LA LISTE DE TOUS LES FICH... par kerisolde
Source avec Zip Source avec une capture FILE,SECURITY,FICHIER par okosa
Source avec Zip Source avec une capture Source .NET (Dotnet) PATCHEUR DE FICHIER par tototh
Source avec Zip Source avec une capture LECTURE DES INFORMATIONS DES DISQUES COMPOSANT UN ENSEMBLE R... par jack

Commentaires et avis

Commentaire de DivXPVobD le 26/07/2002 13:32:01

Ton code est genial, je compte l'utiliser mais il reste un problème, tu spécifie des chemins de dossier spécifique à Windows XP et à une configuration non personnalisé, tu devrais récuperer le chemin des dossier grace à GetSpecialFolder et GetFolder....

contacte moi à WebMaster@DivX-Paradise.net une fois que tu as changé tout ça...

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,889 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales