Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to make a button that will copy two files and put them somewhere else

How to make a button that will copy two files and put them somewhere else

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiotutorialquestion
14 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mshome77
    wrote on last edited by
    #1

    hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

    C L T J T 6 Replies Last reply
    0
    • M mshome77

      hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

      C Offline
      C Offline
      Covean
      wrote on last edited by
      #2

      mshome77 wrote:

      I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate.

      Is this normal to pay around 4 - 5k € as beginner? :confused:

      Greetings Covean

      M 1 Reply Last reply
      0
      • C Covean

        mshome77 wrote:

        I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate.

        Is this normal to pay around 4 - 5k € as beginner? :confused:

        Greetings Covean

        M Offline
        M Offline
        mshome77
        wrote on last edited by
        #3

        no it not normal that's way there is free trail

        1 Reply Last reply
        0
        • M mshome77

          hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          mshome77 wrote:

          How to make a button that will copy two files

          You need to spend some more time learning the language and how there is no direct relationship between a button and a copy action.

          It's time for a new signature.

          1 Reply Last reply
          0
          • M mshome77

            hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

            T Offline
            T Offline
            Tom Deketelaere
            wrote on last edited by
            #5

            Arg so many things wrong here. First of all under vista / windows 7 the c:\windows\system32 map is protected and your program shouldn't be trying to copy anything in there (least of all a dll and a exe) Second as Richard said a button has no relation to a copy (there is no such thing as a copy button) A button has a click event in which you write code (code that can then copy your files). (for that look at the system.IO.File namespace) Third, you should never use absolute path's in your program, either use predefined paths such as the users temp directory or use a setting file where you store these path's. As a last let me give you some pointers as how to ask a question here. Don't just ask for code, show us what you have done, tell us what the code is supposed to do and what it is actually doing. If there are any errors post them (but you'll have to write code before you can get any errors of course)

            M S 2 Replies Last reply
            0
            • M mshome77

              hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

              J Offline
              J Offline
              johannesnestler
              wrote on last edited by
              #6

              Ok, poor beginner: * As others mentioned your style of asking questions here is not good (see what Tom Deketelaere has written). * Learn your language (VB.Net)! * A "button to copy files" is user-view, you are a programmer now, so you won't find any "function-buttons" in your framework. So after that said I'll try to help you anyway (at least in concept, try to find out how to write the code yourself!): 1. Check your requirements, as other said, file copy to this specific folders can be a security problem. 2. Add a Click handler to your copy button, then have a look to VisualStudio-Help (heard about it?) and search for File.Copy method. Use it like in the example given in the VisualStudio-Help. 3. Move your hardcoded paths to settings or configuration file @ exe without path - what you mean by that? Maybe you mean to add the execution path of your 392.exe (C:\Program Files\Imust\) to the environment variables (PATH) of your system? Don't worry everyone started somehow, but my opinion is: first try to figure it out for yourself, then ask questions. With the internet, the rich framworks and documentations this is so easy today...

              M 1 Reply Last reply
              0
              • T Tom Deketelaere

                Arg so many things wrong here. First of all under vista / windows 7 the c:\windows\system32 map is protected and your program shouldn't be trying to copy anything in there (least of all a dll and a exe) Second as Richard said a button has no relation to a copy (there is no such thing as a copy button) A button has a click event in which you write code (code that can then copy your files). (for that look at the system.IO.File namespace) Third, you should never use absolute path's in your program, either use predefined paths such as the users temp directory or use a setting file where you store these path's. As a last let me give you some pointers as how to ask a question here. Don't just ask for code, show us what you have done, tell us what the code is supposed to do and what it is actually doing. If there are any errors post them (but you'll have to write code before you can get any errors of course)

                M Offline
                M Offline
                mshome77
                wrote on last edited by
                #7

                see below

                modified on Tuesday, August 24, 2010 1:37 PM

                1 Reply Last reply
                0
                • J johannesnestler

                  Ok, poor beginner: * As others mentioned your style of asking questions here is not good (see what Tom Deketelaere has written). * Learn your language (VB.Net)! * A "button to copy files" is user-view, you are a programmer now, so you won't find any "function-buttons" in your framework. So after that said I'll try to help you anyway (at least in concept, try to find out how to write the code yourself!): 1. Check your requirements, as other said, file copy to this specific folders can be a security problem. 2. Add a Click handler to your copy button, then have a look to VisualStudio-Help (heard about it?) and search for File.Copy method. Use it like in the example given in the VisualStudio-Help. 3. Move your hardcoded paths to settings or configuration file @ exe without path - what you mean by that? Maybe you mean to add the execution path of your 392.exe (C:\Program Files\Imust\) to the environment variables (PATH) of your system? Don't worry everyone started somehow, but my opinion is: first try to figure it out for yourself, then ask questions. With the internet, the rich framworks and documentations this is so easy today...

                  M Offline
                  M Offline
                  mshome77
                  wrote on last edited by
                  #8

                  will thanks to all ok first iam using win xp iam going to use this program for my own the reason iam making this program to make it easy to setup and install all needed .exe and dll. to play with joystick this is the program http://img835.imageshack.us/img835/3469/iplayp.jpg[^] it has 4 button install: install libusb-win32-filter-bin-0.1.10.1.exe to make the ps3 sixaxies work with windows xp copy : to copy 2 files libusb0.dll and ps3sixaxis_en to C:\WINDOWS\system32 (to run ps3sixaxis_en when need to play with joystick) Xpadder : is program to configure the needed button in the joystick (not mine) exit : simple exit the program the code i made is _______________________________

                  Public Class Form1

                  Private Sub Label1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
                  
                  End Sub
                  
                  Private Sub Button2\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
                      If Dir("C:\\WINDOWS\\system32\\ps3sixaxis\_en.exe") <> "" Then
                          MsgBox("installed successfully")
                      Else
                          MsgBox("File was not copied")
                      End If
                  End Sub
                  
                  Private Sub Button3\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
                      System.Diagnostics.Process.Start("C:\\Program Files\\Iplay\\xpadder.exe")
                  End Sub
                  
                  Private Sub Button4\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
                      End
                  End Sub
                  
                  Private Sub Process1\_Exited(ByVal sender As System.Object, ByVal e As System.EventArgs)
                  
                  End Sub
                  
                  Private Sub Label1\_Click\_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
                  
                  End Sub
                  
                  Private Sub Button1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
                      System.Diagnostics.Process.Start("C:\\Program Files\\Iplay\\libusb-Win32 Setup.exe")
                  End Sub
                  

                  End Class
                  _________________________________________

                  _______________________________________________________________________ and the i used path System.Diagnostics.Process.Start("C:\Program Files\Iplay\libusb-Win32 Setup.exe") because i made setup installer to install (Xpadder and ps3sixaxis_en.exe and libusb0.dll & libusb-win32-filter-bin-0.1.10.1.exe ) to C:\Program Files\Iplay when i

                  H J 2 Replies Last reply
                  0
                  • M mshome77

                    will thanks to all ok first iam using win xp iam going to use this program for my own the reason iam making this program to make it easy to setup and install all needed .exe and dll. to play with joystick this is the program http://img835.imageshack.us/img835/3469/iplayp.jpg[^] it has 4 button install: install libusb-win32-filter-bin-0.1.10.1.exe to make the ps3 sixaxies work with windows xp copy : to copy 2 files libusb0.dll and ps3sixaxis_en to C:\WINDOWS\system32 (to run ps3sixaxis_en when need to play with joystick) Xpadder : is program to configure the needed button in the joystick (not mine) exit : simple exit the program the code i made is _______________________________

                    Public Class Form1

                    Private Sub Label1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
                    
                    End Sub
                    
                    Private Sub Button2\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
                        If Dir("C:\\WINDOWS\\system32\\ps3sixaxis\_en.exe") <> "" Then
                            MsgBox("installed successfully")
                        Else
                            MsgBox("File was not copied")
                        End If
                    End Sub
                    
                    Private Sub Button3\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
                        System.Diagnostics.Process.Start("C:\\Program Files\\Iplay\\xpadder.exe")
                    End Sub
                    
                    Private Sub Button4\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
                        End
                    End Sub
                    
                    Private Sub Process1\_Exited(ByVal sender As System.Object, ByVal e As System.EventArgs)
                    
                    End Sub
                    
                    Private Sub Label1\_Click\_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
                    
                    End Sub
                    
                    Private Sub Button1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
                        System.Diagnostics.Process.Start("C:\\Program Files\\Iplay\\libusb-Win32 Setup.exe")
                    End Sub
                    

                    End Class
                    _________________________________________

                    _______________________________________________________________________ and the i used path System.Diagnostics.Process.Start("C:\Program Files\Iplay\libusb-Win32 Setup.exe") because i made setup installer to install (Xpadder and ps3sixaxis_en.exe and libusb0.dll & libusb-win32-filter-bin-0.1.10.1.exe ) to C:\Program Files\Iplay when i

                    H Offline
                    H Offline
                    hahanottelling
                    wrote on last edited by
                    #9

                    First, always try Google: http://www.google.com/search?q=copy+files+in+vb&hl=en The first result of that search being: http://www.control.com/thread/1026222696 In which someone says "See the FileCopy method in VB. The syntax is: FileCopy SourceFile, DestinationFile". Then, if that's not enough for you, back to Google: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=vb+FileCopy which brings us to: http://msdn.microsoft.com/en-us/library/36xbexyf(v=VS.90).aspx and if that's not enough for you then you probably shouldn't be using the internet. Remember, always try Google.

                    1 Reply Last reply
                    0
                    • M mshome77

                      hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

                      T Offline
                      T Offline
                      Tom Foswick
                      wrote on last edited by
                      #10

                      Hi, I won't tell you that you shouldn't do this or that your question is all wrong. I'll just try to give you an answer you can use. There are a few nice built-in .NET methods for copying a file. Here are two: IO.File.Copy(sourceFileName,destFileName) My.Computer.FileSystem.CopyFile(sourceFileName,destinationFileName) They both do the same thing, though I prefer the first example. The second example is not available if you are programming in C#, so it helps with portability not to use it. Others have already warned you about the problems with hard-coding these paths and with possible/probable security problems in copying to your system directory Now, with regards to your second question (running 392.exe) without knowing the path, the short answer is, "No", it is not possible. The long answer is, "Yes", it is possible, but it is clunky. There are two strategies that I can think of. The first strategy involves environment variables, and someone else already talked about that. I wouldn't recommend that approach for a bunch of reasons. The second approach involves searching for the file, then running it. The problems with this are: - It is potentially quite slow. It could take a long time to find the file. - It is potentially dangerous. If there was another file named "392.exe" that you didn't want to run, the code might find it and run it anyway. However, the code for finding the file and running it would look something like this:

                      Private Function FindFile(ByVal fileName As String, ByVal searchDirectory As String) As String
                          Dim fullPath As String = ""
                      
                          If Not IO.Directory.Exists(searchDirectory) Then Throw New IO.DirectoryNotFoundException
                      
                          fullPath = IO.Path.Combine(searchDirectory, fileName)
                          If Not IO.File.Exists(fullPath) Then
                              fullPath = ""
                              Try
                                  For Each subDirectory As String In IO.Directory.GetDirectories(searchDirectory)
                                      fullPath = FindFile(fileName, subDirectory)
                                      If fullPath <> "" Then Exit For
                                  Next
                              Catch uaException As UnauthorizedAccessException
                                  fullPath = ""
                              End Try
                          End If
                      
                          Return fullPath
                      End Function
                      

                      This function will search all subdirectories to which your app has access for the file in question. You would use it like this:

                      myFile = FindFile("392.exe", "C:\")
                      If IO.File.Exists(myFile) Then Process.Start(myFile)

                      This woul

                      M 1 Reply Last reply
                      0
                      • M mshome77

                        will thanks to all ok first iam using win xp iam going to use this program for my own the reason iam making this program to make it easy to setup and install all needed .exe and dll. to play with joystick this is the program http://img835.imageshack.us/img835/3469/iplayp.jpg[^] it has 4 button install: install libusb-win32-filter-bin-0.1.10.1.exe to make the ps3 sixaxies work with windows xp copy : to copy 2 files libusb0.dll and ps3sixaxis_en to C:\WINDOWS\system32 (to run ps3sixaxis_en when need to play with joystick) Xpadder : is program to configure the needed button in the joystick (not mine) exit : simple exit the program the code i made is _______________________________

                        Public Class Form1

                        Private Sub Label1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
                        
                        End Sub
                        
                        Private Sub Button2\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
                            If Dir("C:\\WINDOWS\\system32\\ps3sixaxis\_en.exe") &lt;&gt; "" Then
                                MsgBox("installed successfully")
                            Else
                                MsgBox("File was not copied")
                            End If
                        End Sub
                        
                        Private Sub Button3\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
                            System.Diagnostics.Process.Start("C:\\Program Files\\Iplay\\xpadder.exe")
                        End Sub
                        
                        Private Sub Button4\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
                            End
                        End Sub
                        
                        Private Sub Process1\_Exited(ByVal sender As System.Object, ByVal e As System.EventArgs)
                        
                        End Sub
                        
                        Private Sub Label1\_Click\_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
                        
                        End Sub
                        
                        Private Sub Button1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
                            System.Diagnostics.Process.Start("C:\\Program Files\\Iplay\\libusb-Win32 Setup.exe")
                        End Sub
                        

                        End Class
                        _________________________________________

                        _______________________________________________________________________ and the i used path System.Diagnostics.Process.Start("C:\Program Files\Iplay\libusb-Win32 Setup.exe") because i made setup installer to install (Xpadder and ps3sixaxis_en.exe and libusb0.dll & libusb-win32-filter-bin-0.1.10.1.exe ) to C:\Program Files\Iplay when i

                        J Offline
                        J Offline
                        johannesnestler
                        wrote on last edited by
                        #11

                        Ok: First use the "code block"-tag in your messages on codeproject - this will format your code in a readable way. @Copy: You didn't get my hint about File.Copy? :wtf: Open VisualStudio-Help type File.Copy into the index-search field. You will find examples for every .NET language... I did it for you, and here is the example from VS-Help:

                        Imports System
                        Imports System.IO

                        Public Class Test
                        Public Shared Sub Main()
                        ' Specify the directories you want to manipulate.
                        Dim path As String = "c:\temp\MyTest.txt"
                        Dim path2 As String = path + "temp"

                            Try
                                Dim fs As FileStream = File.Create(path)
                                fs.Close()
                                ' Ensure that the target does not exist.
                                File.Delete(path2)
                        
                                ' Copy the file.
                                File.Copy(path, path2)
                                Console.WriteLine("{0} copied to {1}", path, path2)
                        
                                ' Try to copy the same file again, which should fail.
                                File.Copy(path, path2)
                                Console.WriteLine("The second Copy operation succeeded, which was not expected.")
                        
                            Catch e As Exception
                                Console.WriteLine("The second Copy operation failed, as expected.")
                            End Try
                        End Sub
                        

                        End Class

                        So If you don't know how to use the framework and language - first figure out where to find documentation or help (day 1). Try to experiment with your code, and you will learn a lot by "doing". Here on codeproject you can find "real experts", they will help you if you have a real problem (even if it is a "beginner-problem"), but not doing your "homework" will not help you to get good answeres here. The question-style: "I want you to solve my problem" doesn't work here! :rose: Edit: Correction: Ok sometimes it works - Tom Foswick had compassion with you - and gave you a perfect answer while I wrote this. :)

                        1 Reply Last reply
                        0
                        • T Tom Foswick

                          Hi, I won't tell you that you shouldn't do this or that your question is all wrong. I'll just try to give you an answer you can use. There are a few nice built-in .NET methods for copying a file. Here are two: IO.File.Copy(sourceFileName,destFileName) My.Computer.FileSystem.CopyFile(sourceFileName,destinationFileName) They both do the same thing, though I prefer the first example. The second example is not available if you are programming in C#, so it helps with portability not to use it. Others have already warned you about the problems with hard-coding these paths and with possible/probable security problems in copying to your system directory Now, with regards to your second question (running 392.exe) without knowing the path, the short answer is, "No", it is not possible. The long answer is, "Yes", it is possible, but it is clunky. There are two strategies that I can think of. The first strategy involves environment variables, and someone else already talked about that. I wouldn't recommend that approach for a bunch of reasons. The second approach involves searching for the file, then running it. The problems with this are: - It is potentially quite slow. It could take a long time to find the file. - It is potentially dangerous. If there was another file named "392.exe" that you didn't want to run, the code might find it and run it anyway. However, the code for finding the file and running it would look something like this:

                          Private Function FindFile(ByVal fileName As String, ByVal searchDirectory As String) As String
                              Dim fullPath As String = ""
                          
                              If Not IO.Directory.Exists(searchDirectory) Then Throw New IO.DirectoryNotFoundException
                          
                              fullPath = IO.Path.Combine(searchDirectory, fileName)
                              If Not IO.File.Exists(fullPath) Then
                                  fullPath = ""
                                  Try
                                      For Each subDirectory As String In IO.Directory.GetDirectories(searchDirectory)
                                          fullPath = FindFile(fileName, subDirectory)
                                          If fullPath <> "" Then Exit For
                                      Next
                                  Catch uaException As UnauthorizedAccessException
                                      fullPath = ""
                                  End Try
                              End If
                          
                              Return fullPath
                          End Function
                          

                          This function will search all subdirectories to which your app has access for the file in question. You would use it like this:

                          myFile = FindFile("392.exe", "C:\")
                          If IO.File.Exists(myFile) Then Process.Start(myFile)

                          This woul

                          M Offline
                          M Offline
                          mshome77
                          wrote on last edited by
                          #12

                          Thank you all that helped me a lot

                          1 Reply Last reply
                          0
                          • T Tom Deketelaere

                            Arg so many things wrong here. First of all under vista / windows 7 the c:\windows\system32 map is protected and your program shouldn't be trying to copy anything in there (least of all a dll and a exe) Second as Richard said a button has no relation to a copy (there is no such thing as a copy button) A button has a click event in which you write code (code that can then copy your files). (for that look at the system.IO.File namespace) Third, you should never use absolute path's in your program, either use predefined paths such as the users temp directory or use a setting file where you store these path's. As a last let me give you some pointers as how to ask a question here. Don't just ask for code, show us what you have done, tell us what the code is supposed to do and what it is actually doing. If there are any errors post them (but you'll have to write code before you can get any errors of course)

                            S Offline
                            S Offline
                            spencepk
                            wrote on last edited by
                            #13

                            Tom Deketelaere wrote:

                            First of all under vista / windows 7 the c:\windows\system32 map is protected and your program shouldn't be trying to copy anything in there (least of all a dll and a exe)

                            I'll second that... I'd go one step further and say no matter what OS, or version thereof, files should not be copied to the folder where system files reside. Just a bad practice IMHO.

                            1 Reply Last reply
                            0
                            • M mshome77

                              hi I am beginner in programming Visual Basic and i use the visual studio 2010 ultimate Almost finished my simple program __________________________________________ just two button's left was How to make a button that will copy two files and put them somewhere else I have the two files in the C:\Program Files\Imust One. Dll and the second. Exe I want a button to copy the files and places them in C:\WINDOWS\system32 How? _________________________________________ and the other button system.diagnostics.process.start (C:\Program Files\Imust\392.exe) is there's anyway to run 392.exe without path ? _________________________________________ is there any list of usefull code's ? ______________________________________ thank

                              P Offline
                              P Offline
                              Phan7om
                              wrote on last edited by
                              #14

                              learn how to use google before posting questions. Because most of the time anything a beginner needs is available on google, you just have to search it right.

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups