Code:
Try
Dim TargetProcess As Process() = Process.GetProcessesByName( "EndingBanner")
If TargetProcess.Length0 Then
My.Computer.FileSystem.DeleteFile( "C:\Nexon\Combat Arms\Game\GUNS_M_PV_SMG.rez",FileIO.UIOption.OnlyErrorDialogs,FileIO.RecycleOp tion.DeletePermanently,FileIO.UICancelOption.DoNot hing)
My.Computer.FileSystem.DeleteFile( "C:\Nexon\Combat Arms\Game\GUNS_T_PV_SMG.rez",FileIO.UIOption.OnlyErrorDialogs,FileIO.RecycleOp tion.DeletePermanently,FileIO.UICancelOption.DoNot hing)
End If
Catch ex As Exception
'Display error message here...
End Try
I tried this code, it was really nice, maybe i wasn't clear enough. But i want it to be able to detect the start of proccess "Ending banner", so as soon as proccess "ending banner" starts, it starts killing files.