Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6927793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:06:05+00:00 2026-05-27T11:06:05+00:00

I am making a directory cleaner that uses the following code Label2.Text = Cleaned.

  • 0

I am making a directory cleaner that uses the following code

Label2.Text = "Cleaned."
    If CheckBox1.Checked = True Then
        On Error Resume Next
        Kill("C:\Nexon\Combat Arms\*.txt")
    End If
    If CheckBox2.Checked = True Then
        On Error Resume Next
        Kill("C:\Nexon\Combat Arms\*.jpg")
    End If
    If CheckBox3.Checked = True Then
        On Error Resume Next
        Kill("C:\Nexon\Combat Arms\*.v3d")
    End If
    If CheckBox4.Checked = True Then
        On Error Resume Next
        Kill("C:\Nexon\Combat Arms\*.bin")
    End If
    If CheckBox5.Checked = True Then
        On Error Resume Next
        Kill("C:\Nexon\Combat Arms\*.dmp")
    End If
    If CheckBox6.Checked = True Then
        On Error Resume Next
        Kill("C:\Nexon\Combat Arms\*.dump")
    End If
    If CheckBox7.Checked = True Then
        On Error Resume Next
        System.IO.File.SetAttributes("C:\Nexon\Combat Arms\EndingBanner.exe", System.IO.FileAttributes.Normal)
        Kill("C:\Nexon\Combat Arms\EndingBanner.exe")
    End If
    If CheckBox8.Checked = True Then
        On Error Resume Next
        System.IO.File.SetAttributes("C:\Nexon\Combat Arms\CAV.exe", System.IO.FileAttributes.Normal)
        Kill("C:\Nexon\Combat Arms\CAV.exe")
    End If
    If CheckBox9.Checked = True Then
        On Error Resume Next
        If Dir("C:\Nexon\Combat Arms\MOVIES") <> "" Then
            Rename("C:\Nexon\Combat Arms\Game\MOVIES", "C:\Nexon\Combat Arms\Game\CLEANED")
        End If
    End If

But instead of stating the directory in the program I want the user to select it , “C:\Nexon\Combat Arms\” using SelectDirectory; I have this but, cant make it work

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    Dim MyFolderBrowser As New System.Windows.Forms.FolderBrowserDialog
    Dim dlgResult As DialogResult = MyFolderBrowser.ShowDialog()

    Me.FileReference.Text = MyFolderBrowser.SelectedPath


End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:06:05+00:00Added an answer on May 27, 2026 at 11:06 am

    The folderbrowser code works fine. Are you having a problem implementing this?

    Kill(Me.FileReference.Text & "\*.txt")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code currently. I'm making a java program that seaches Active Directory
I'm making a C program where I need to get the directory that the
I'm making a program that will display a few images from a directory beside
I am making an app that downloads videos to the documents directory and plays
Making an adobe flex ui in which data that is calculated must use proprietary
Making UML sequence diagram in VS 2010RC I've observed that there is no activation
I am having a problem making a sub directory act as the public_html for
I am making a css grid system that relies on the concept of blocks.
I am making an application that allows users to upload a file in a
I am making an android application that needs to display all of the items

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.