imports System.IO.File
If System.IO.File.Exists("C:\Nexon\CombatArms\Endingbanner.exe") = True Then
MsgBox("File Found") ' or what ever
End If
Imports System.IO
Try
Dim myFile() As Byte = My.Resources.FILENAME
Dim fileData = New FileStream(C:\...... + "\FILENAME.txt", FileMode.OpenOrCreate)
Dim BW As New BinaryWriter(fileData)
Try
For bt As Integer = 0 To myFile.Length - 1
BW.Write(myFile(bt))
Next
Catch ex As Exception
MsgBox(ex.Message.ToString)
Finally
fileData.Close()
BW.Close()
End Try
MsgBox("File moved")
Catch ex As Exception
MsgBox("Failed")
End Try
Dim fso
Dim fol As String
fol = "C:\Nexon\Combat Arms\"
fso = CreateObject("Scripting.FileSystemObject")
If Not fso.FileExists(fol + "EndingBanner.exe") Then
label1.text = Ending Banner Not Found
Else
label1.text = Ending Banner Found
End If