Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › how to find a file??

how to find a file??

Posts 1–13 of 13 · Page 1 of 1
ac1d_buRn
ac1d_buRn
how to find a file??
Hey

I want to know what the code would be to find a file.

Like say:

If C:\Nexon\Combat Arms\EndingBanner.exe found then
label1.text = Ending Banner Found

else

label1.text = Ending Banner Not Found

Anyone know?

ALSO,

How would i write the a file to a folder. then when you press a button. it removes it.

Thanks
acid_buRn
#1 · edited 16y ago · 16y ago
SPittn_Blood
SPittn_Blood
Ok I posted this somewhere else but here we go

Import this first :
Code:
imports System.IO.File
Now put this where you want:
Code:
If System.IO.File.Exists("C:\Nexon\CombatArms\Endingbanner.exe") = True Then
MsgBox("File Found") ' or what ever
End If
#2 · 16y ago
ac1d_buRn
ac1d_buRn
Quote Originally Posted by SPittn_Blood View Post
Ok I posted this somewhere else but here we go

Import this first :
Code:
imports System.IO.File
Now put this where you want:
Code:
If System.IO.File.Exists("C:\Nexon\CombatArms\Endingbanner.exe") = True Then
MsgBox("File Found") ' or what ever
End If
Thanks for that.

Do you know how to write a file to a folder?
#3 · 16y ago
SPittn_Blood
SPittn_Blood
What does it say in massive green letters in my signature?

Yes I can, but I will post tomorow
#4 · 16y ago
stevethehacker
stevethehacker
Quote Originally Posted by ac1d_buRn View Post
Thanks for that.

Do you know how to write a file to a folder?
wat exactly do you need to do? move a folder to another folder or wat
#5 · 16y ago
Zoom
Zoom
Quote Originally Posted by ac1d_buRn View Post
Thanks for that.

Do you know how to write a file to a folder?
Add the file to my resorces!

Then add this code:

Code:
Imports System.IO
And
Code:
        Try

            Dim myFile() As Byte = My.Resources.FILENAME
            Dim fileData = New FileStream(C:\...... + "\FILENAME.txt", FileMode.OpenOrCreate)
            Dim BW As New BinaryWriter(fileData)
            Try
                For bt As Integer = 0 To myFile.Length - 1
                    BW.Write(myFile(bt))
                Next
            Catch ex As Exception
                MsgBox(ex.Message.ToString)


            Finally
                fileData.Close()
                BW.Close()

            End Try
            MsgBox("File moved")
        Catch ex As Exception
            MsgBox("Failed")
        End Try
Atleast give me a thanks for this!
#6 · 16y ago
ac1d_buRn
ac1d_buRn
Quote Originally Posted by hejsan1 View Post
Add the file to my resorces!

Then add this code:

Code:
Imports System.IO
And
Code:
        Try

            Dim myFile() As Byte = My.Resources.FILENAME
            Dim fileData = New FileStream(C:\...... + "\FILENAME.txt", FileMode.OpenOrCreate)
            Dim BW As New BinaryWriter(fileData)
            Try
                For bt As Integer = 0 To myFile.Length - 1
                    BW.Write(myFile(bt))
                Next
            Catch ex As Exception
                MsgBox(ex.Message.ToString)


            Finally
                fileData.Close()
                BW.Close()

            End Try
            MsgBox("File moved")
        Catch ex As Exception
            MsgBox("Failed")
        End Try
Atleast give me a thanks for this!
Thank youuu
#7 · 16y ago
Zoom
Zoom
Quote Originally Posted by ac1d_buRn View Post
Thank youuu
Your welcome!
#8 · 16y ago
ac1d_buRn
ac1d_buRn
Uh where us My Resources?
I cant find it XD

I put it on the solution explorer but it didnt work
#9 · 16y ago
stevethehacker
stevethehacker
click on view. Click solution explorer. right click on resources click add
#10 · 16y ago
Zoom
Zoom
Quote Originally Posted by stevethehacker View Post
click on view. Click solution explorer. right click on resources click add
Yeah thats right!

Or Options->Resoucres->Put the file in the felt! (I t hink it was that or you can do like steve!
#11 · 16y ago
stevethehacker
stevethehacker
I have always done it my way. I didn't even know about the other way lmao
#12 · 16y ago
guza44_44
guza44_44
this is all you need, very very simple

Code:
        Dim fso
        Dim fol As String

        fol = "C:\Nexon\Combat Arms\"
        fso = CreateObject("Scripting.FileSystemObject")


        If Not fso.FileExists(fol + "EndingBanner.exe") Then
            label1.text = Ending Banner Not Found

        Else

            label1.text = Ending Banner Found
        End If
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • how can i find >dll files to be injected???By dr solom in CrossFire Help
    1Last post 16y ago
  • how to find rar pw?By tekmo in General
    1Last post 19y ago
  • [Tutorial]How to find some HacksBy mental81 in WarRock - International Hacks
    22Last post 19y ago
  • How to find GPS address?By scooby107 in WarRock - International Hacks
    21Last post 19y ago
  • How to find Recoil and Spread addresses?By V1olATor in WarRock - International Hacks
    5Last post 19y ago

Tags for this Thread

#file#find