Accueil > > > CLEANER
CLEANER
Information sur la source
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
Commentaires et avis
|
Derniers Blogs
L'INTERFACE NATURELLE DE WINDOWS PHONE 7 SERIESL'INTERFACE NATURELLE DE WINDOWS PHONE 7 SERIES par odewit
La tendance est aux interfaces naturelles (NUI), et le keynote de Bill Buxton au MIX l'a bien souligné.
La charte graphique et ergonomique de Windows Phone 7 a donc été entièrement repensée en vue d'obtenir un maximum d'efficacité sur ce point. En re...
Cliquez pour lire la suite de l'article par odewit COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE?COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE? par Matthieu MEZIL
Avec EF, les vues doivent être mappées sur des entity types. Le problème c'est que les entity types doivent avoir une clé. Avec EF, nous avons les complex type qui n'ont pas de clé mais les vues ne peuvent pas être mappées dessus. Avec EF4, il est possibl...
Cliquez pour lire la suite de l'article par Matthieu MEZIL [WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL?[WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL? par JeremyJeanson
Certain d'entre vous on peut être vécu cette situation embarrassante après quelques temps passer avec WF4 : Au début avec mon " ActivityDesigner" , tout allait bien. Et puis un jour j'ai au des problèmes de " Binding" . Alors nous sommes allé sur le site ...
Cliquez pour lire la suite de l'article par JeremyJeanson
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|