Results 1 to 3 of 3
  1. #1
    romario313's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    MICHIGAN
    Posts
    216
    Reputation
    9
    Thanks
    24
    My Mood
    Relaxed

    Exclamation How to move one file to another!!

    Does anyone know the vb 2008 code to move a file to one place to another?!?
    I'm sick and tired of my combat arms multi tool having a folder to go along with it for my batch files.
    This is what I'm sick of...
    Code:
    System.Diagnostics.Process.Start("C:\Users\Owner\Desktop\Bat Files\Person With Texture.bat")
    'That .bat file moves the files because that is what I script it for....
    This annoys me because I don't want an extra folder to go along with my multi tool so all I'm asking is, what is the code to move one file from one folder to another. Please help me!!

  2. #2

  3. #3
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    433
    Reputation
    16
    Thanks
    310
    Items needed ( 1 button)

    put this on very top:
    Code:
    Option Explicit On
    Imports System.IO
    put this in the code area of your button
    Code:
            Dim Location As String
            Dim MoveLocation As String
            Location = "C:\filepath"
            MoveLocation = "C:\newfilepath"
    
    
    file.move(Location, MoveLocation)
    [IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]

Similar Threads

  1. [Help] How to move files?
    By guza44_44 in forum Visual Basic Programming
    Replies: 6
    Last Post: 11-05-2009, 01:26 AM
  2. How to: Move a File in Visual Basic
    By Pixie in forum Visual Basic Programming
    Replies: 12
    Last Post: 09-14-2009, 08:04 PM
  3. UFO's?.. How to make one?
    By Dokuda in forum Entertainment
    Replies: 2
    Last Post: 07-07-2007, 02:29 AM
  4. [Request] KWR ACC or Can Some One Explain How To Make One
    By killurpig in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-04-2007, 04:03 PM
  5. Masking one weapon as another...
    By ituneslove in forum WarRock - International Hacks
    Replies: 6
    Last Post: 02-21-2006, 03:02 AM