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
GESTION D'EXCEPTION AVEC LES TASKSGESTION D'EXCEPTION AVEC LES TASKS par richardc
Nous avons vu dans un précédent article comment utiliser Task pour effectuer des opérations dans un autre thread.
Malheureusement, comme tout le monde n'est pas parfait, il se peut que cette exécution se passe mal et qu'une exception se produise.
La...
Cliquez pour lire la suite de l'article par richardc DéMARRONS AVEC LES TASKSDéMARRONS AVEC LES TASKS par richardc
Que vous le vouliez ou non, le développement multi-tâche est maintenant une obligation pour toute nouvelle application. Il est donc vital d'en comprendre les mécanismes et de s'y mettre le plus tôt possible.
En attendant le .NET Framework 4.5 avec le...
Cliquez pour lire la suite de l'article par richardc SLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPSSLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPS par Vko
Retrouvez les slides et les démo de ma session Fast & Furious XAML Apps. A ceux qui se posent la question : "est-ce que le code de la DataGrid est disponible?", je vous répondrais "pas encore". Je vais mettre en place un projet codeplex pour part...
Cliquez pour lire la suite de l'article par Vko XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|