Results 1 to 7 of 7
  1. #1
    MugNuf's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    790
    Reputation
    9
    Thanks
    160
    My Mood
    Goofy

    [Question]File.Move?

    Is there a way to use file.move to make something like this:

    [PHP]File.Move(TextBox1.Text & "\HyperCam2\*name of file*"[/PHP]

    But... File.Move, gives errors, and i don't really know how it works. Could someone tell me.. or give me a link to a example?

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Code:
    Imports System.IO
    Public Class Form1
    
    Public Sub Main
    
            Dim fm As File
    
            fm.Move("From File Location/File.Extension", "To File Location\file.extension")
    
    
        End Sub
    End Class
    Or

    Code:
     Declare Auto Function MoveFile Lib "KERNEL32.dll" Alias "MoveFile" (ByVal src As String, ByVal
    dst As String) As Boolean
    
    Public Class Form1
    
    Public sub main
     MoveFile("from file location/file.extension", "to file location/file.extension")
    
    end sub
    
    end class

    I think you get the idea
    Last edited by NextGen1; 02-04-2010 at 09:22 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  3. #3
    MugNuf's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    790
    Reputation
    9
    Thanks
    160
    My Mood
    Goofy
    Thanks, i like the first one thou, more organized in my opinion.

  4. #4
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Meh it really matters how much you're using the File.Move command.

    If you're using it a lot, then use the second code, changing the alias to something shorter.

  5. #5
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Code:
    System.IO.File.Copy(Starting File Location, Location to move file to)
    This is the easy way to do it if you want to preserve the original file

  6. #6
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    I use this:
    Code:
    My.Computer.FileSystem.MoveFile("C:\FILE.txt", _
        "C:\File1.txt")
    -Rest in peace leechers-

    Your PM box is 100% full.

  7. #7
    hopefordope's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Herndon,VA
    Posts
    264
    Reputation
    9
    Thanks
    86
    My Mood
    Psychedelic
    ya the first one is better

    Press Thank You[IMG]https://i45.tinypic.com/2hg8w0n.jpghttps://img1.UploadScreensho*****m/images/main/2/3203234450.jpg[/IMG]










    My Releases
    Injector 3G
    Injector 2G
    Injector 1G
    Super Spammer
    CA Cleaner
    My Tutorials
    How to Make a real Injector(PerX)
    How to Make a Calculator(leeched)

Similar Threads

  1. [Question] Files and Such...
    By Falingrave in forum Combat Arms Mod Discussion
    Replies: 4
    Last Post: 08-13-2010, 09:59 PM
  2. [Help]File Move
    By .Celtics in forum Visual Basic Programming
    Replies: 5
    Last Post: 08-04-2010, 05:04 PM
  3. CHARS_M_BODY.rez File move help
    By AussieAImBot in forum Combat Arms Glitches
    Replies: 13
    Last Post: 08-12-2009, 06:02 PM
  4. [Question] Transparenting .png files
    By DC147 in forum Art & Graphic Design
    Replies: 4
    Last Post: 08-31-2008, 06:53 AM
  5. a question on external files
    By mpghhackersrock123 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 09-02-2007, 05:23 AM