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 › [Help] How to move files?

Question[Help] How to move files?

Posts 1–7 of 7 · Page 1 of 1
guza44_44
guza44_44
[Help] How to move files?
Okay i was looking at the file killer and code from something that moved files but yet when i try to take the EXACT code just a different file to a new place it wont move and says there is an error.....anyone happen to know the code?

I have checked from the tutorials from the site it came from itself and it still says error

Code i used:

Code:
Dim Moving As String
        Moving = "C:\Desktop\Older\*.png"
        Dim Moved As String
        Moved = "C:\Desktop\Older\*.png"
        If RadioButton1.Checked = True Then
            File.Move(Moving, Moved)
        End If
it doesnt matter if i put %Desktop% or w/e because it "STILL" says error
#1 · edited 16y ago · 16y ago
SPittn_Blood
SPittn_Blood
vb6? or vbe?


Edit: This is what I found

imports System.IO.File

'FileToMove = "C:\test.txt"
'MoveLocation = "C:\ TestFolder\test.txt"

Youll probably need to Dim FileToMove as string and same for MoveLocation

If System.IO.File.Exists(FileToMove) = True Then
System.IO.File.Move(FileToMove, MoveLocation)
MsgBox("File Moved")
End If

Thank Me If I Helped
#2 · edited 16y ago · 16y ago
Dark_Goliath
Dark_Goliath
Yep that is very very simple
#3 · 16y ago
guza44_44
guza44_44
Quote Originally Posted by SPittn_Blood View Post
vb6? or vbe?


Edit: This is what I found

imports System.IO.File

'FileToMove = "C:\test.txt"
'MoveLocation = "C:\ TestFolder\test.txt"

Youll probably need to Dim FileToMove as string and same for MoveLocation

If System.IO.File.Exists(FileToMove) = True Then
System.IO.File.Move(FileToMove, MoveLocation)
MsgBox("File Moved")
End If

Thank Me If I Helped

hmmm i still cant get it to work and i have no clue why honestly :/
#4 · 16y ago
SPittn_Blood
SPittn_Blood
Are you using vb6 or express? and screen-shot the error?
#5 · 16y ago
guza44_44
guza44_44
oh my bad sorry um ya im using 08 and his code dont show an error but its saying it dont exist -.- (the file)

edit: nvm this works but how can i move any file that is a png? so it moves all files that is a png
#6 · edited 16y ago · 16y ago
SPittn_Blood
SPittn_Blood
Put the code in a loop?
and FileToMove = "C:\*.png
and do the same for Move Location
#7 · 16y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • How to: Move a File in Visual BasicBy Pixie in Visual Basic Programming
    12Last post 17y ago
  • [Help] How to decrypt CA files?By IsamuRukario in Combat Arms Mod Discussion
    6Last post 16y ago
  • How to move one file to another!!By romario313 in Visual Basic Programming
    2Last post 16y ago
  • (help)How do u inject rez files (help)By mastero89 in Combat Arms Mod Discussion
    1Last post 16y ago
  • [SOLVED] [HELP] How to inject .gsc files? [HELP]By Dedoseyou in Call of Duty Modern Warfare 2 Help
    4Last post 16y ago

Tags for this Thread

#files#move