Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuT] BSOD Triggering Program
#3
(07-03-2011, 03:30 AM)Ace Wrote:
Code:
If Not I.ProcessName = Application.ExecutablePath.Split("\")(Application.ExecutablePath.Split("\").Length - 1).Split(".")(0) Then

you didn't need all that extra typing lol. This could have been used as well:
Code:
Path.GetFileName(Application.ExecutablePath)
As long as you Import the System.IO namespace, otherwise, you're going to have to put it directly in there like this:
Code:
IO.Path.GetFileName(Application.ExecutablePath)

Or you could have just split it at the last index of "\" instead, also it's only accurate for form applications. But it wouldn't work for a module or a service.

But this is only accurate for windows form applications (executables), and it wouldn't be very good to use for a service or a module.
Use this instead of the code above:
Code:
Dim AppProcess As String = Process.GetCurrentProcess.MainModule.FileName

LOL... So what is it doing technically?... Explain please Ace
[Image: t5BWm.png]
Reply


Messages In This Thread
[TuT] BSOD Triggering Program - by Black Ghost - 06-29-2011, 09:31 AM
RE: [TuT] BSOD Triggering Program - by Resistance - 07-03-2011, 01:48 PM
RE: [TuT] BSOD Triggering Program - by Resistance - 07-03-2011, 05:02 PM
RE: [TuT] BSOD Triggering Program - by t0fxREAL - 07-04-2011, 06:39 PM
RE: [TuT] BSOD Triggering Program - by t0fxREAL - 07-04-2011, 07:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 56,383 10-07-2012, 06:56 AM
Last Post: a99
  AutoBlue - BSOD Tool - Preview Only AceInfinity 4 1,318 02-24-2012, 09:06 PM
Last Post: AceInfinity
  DriveList Helper - BSOD Drive Query Crash Dump Debugging Tool AceInfinity 5 1,615 02-14-2012, 07:02 AM
Last Post: AceInfinity
  [TUT]Auto-Update System[TUT] HB Virus 3 2,210 01-07-2012, 02:21 PM
Last Post: Mastermrz
  [TUT]Enable and Disable TaskManger in vb.net [TUT] HB Virus 4 2,928 12-19-2011, 10:10 AM
Last Post: euverve

Forum Jump:


Users browsing this thread: 1 Guest(s)