Forum posts for MSASCui.exe

Retrieving File details in vb.net

I am trying to retrieve file details from files in the Program Files folder.
I receive an error while trying to retrieve file details.

Dim sFileName As String = ('%ProgramFiles%Windows DefenderMSASCui.exe')
Dim Info As FileVersionInfo
Info = FileVersionInfo.GetVersionInfo(sFileName)
Msgbox(Info.ProductName.ToString())


I receive file not found error at 3rd line.
But if I change the path from '%ProgramFiles%Windows DefenderMSASCui.exe' to 'c:Program FilesWindows DefenderMSASCui.exe' it works fine.

What should I do if I want to retrieve file details from the path which includes a '%' character?

View complete forum thread with replies

Other posts related to MSASCui.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Retrieving File details in vb.net

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.