Strip of the folder name

Scripting , VB , VBScript Sungai Ara, Malaysia
  • 8 years ago

    Hi I am VB Script newbie. My application reads a file and scan for some patterns for example C:\programs\staging\Base\mbxxd2mm200g4_Base.tp

    I want to replace the content of the file with just the filename (and remove the text after the _)

    mbxxd2mm200g4 is what I need.

    How can I achieve that?

    Marcus

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The question of whether computers can think is just like the question of whether submarines can swim.” - Edsger W. Dijkstra