Strip of the folder name

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

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

    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?


Post a reply

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

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


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.

“C++ : Where friends have access to your private members.” - Gavin Russell Baker