Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
I am trying to get File name, description and version.
As I know, I must define the path of the file First, to get the file information.
so I already used FileVersionInfo class, it's working pretty well...

but my problem is: how to get the file path from something like this:
"Rundll32.exe NvMCTray.dll,NvTaskbarInit - login"
"Rundll32.exe C:\Windows\system32\NvCpl.dll,NvStartup"

If is it possible, please help me.

Best Regards,
Nana
Posted

1 solution

There is no path information to get about the files on that command line.

The only thing you can do is grab the filename you have and then go searching the hard drive for the file, one directory at a time.

You can search the drive a bit more "intelligently" by assuming that the files will be found somewhere in the PATH environment variable. Search those folders first, and if you don't find the file, you'll have to search the rest of the directory structure until you do.

That could take a while.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900