Dim Filename as string= "(Internet Explorer\Dap)"
VB Code:
  1. Filename = Process.GetCurrentProcess.ToString.Substring(Process.GetCurrentProcess.ToString.LastIndexOf("(") + 1)
  2. Filename = Text.Remove(Text.Length - 1, 1)

is there a way of making this one

Tried this:
VB Code:
  1. Filename = Process.GetCurrentProcess.ToString.Substring(Process.GetCurrentProcess.ToString.LastIndexOf("(") + 1).tostring.Remove(Text.Length - 1, 1)

But it didn't work!!!