Click here to Skip to main content
15,893,588 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: How to make a button that will copy two files and put them somewhere else Pin
Covean24-Aug-10 2:08
Covean24-Aug-10 2:08 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 2:17
mshome7724-Aug-10 2:17 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Richard MacCutchan24-Aug-10 2:56
mveRichard MacCutchan24-Aug-10 2:56 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
Tom Deketelaere24-Aug-10 3:22
professionalTom Deketelaere24-Aug-10 3:22 
QuestionRe: How to make a button that will copy two files and put them somewhere else [modified] Pin
mshome7724-Aug-10 5:31
mshome7724-Aug-10 5:31 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
spencepk25-Aug-10 2:42
spencepk25-Aug-10 2:42 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
johannesnestler24-Aug-10 5:22
johannesnestler24-Aug-10 5:22 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 7:40
mshome7724-Aug-10 7:40 
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 said button that copy 2 file
(i meant the code it self) if there anyway that copy 2 files to C:\WINDOWS\system32

how you want me to wright a code while i dont know anything about the copy thing

(i started learning vb2010 2 day's ago)
thanks for the help
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
hahanottelling24-Aug-10 21:13
hahanottelling24-Aug-10 21:13 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
johannesnestler24-Aug-10 22:28
johannesnestler24-Aug-10 22:28 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
Tom Foswick24-Aug-10 21:58
Tom Foswick24-Aug-10 21:58 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7725-Aug-10 2:18
mshome7725-Aug-10 2:18 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Phan7om26-Aug-10 23:19
Phan7om26-Aug-10 23:19 
Questionget the IDLE time [Solved] Pin
εїзεїзεїз23-Aug-10 23:04
εїзεїзεїз23-Aug-10 23:04 
AnswerRe: get the IDLE time Pin
Nuri Ismail23-Aug-10 23:28
Nuri Ismail23-Aug-10 23:28 
GeneralRe: get the IDLE time Pin
εїзεїзεїз23-Aug-10 23:49
εїзεїзεїз23-Aug-10 23:49 
GeneralRe: get the IDLE time Pin
Nuri Ismail24-Aug-10 0:04
Nuri Ismail24-Aug-10 0:04 
QuestionHow to make the VB6 and MS-Access project Centralised? Pin
kokilag23-Aug-10 20:24
kokilag23-Aug-10 20:24 
AnswerRe: How to make the VB6 and MS-Access project Centralised? Pin
_Damian S_23-Aug-10 20:41
professional_Damian S_23-Aug-10 20:41 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
kokilag24-Aug-10 19:31
kokilag24-Aug-10 19:31 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
_Damian S_24-Aug-10 20:38
professional_Damian S_24-Aug-10 20:38 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
kokilag25-Aug-10 18:36
kokilag25-Aug-10 18:36 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
kokilag27-Aug-10 0:37
kokilag27-Aug-10 0:37 
QuestionMessage Removed Pin
23-Aug-10 11:37
kereljansen23-Aug-10 11:37 
AnswerRe: sql string Pin
Wes Aday23-Aug-10 12:32
professionalWes Aday23-Aug-10 12:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.