Get actual executable file path in Registry

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello,
I want to make a utility to clean Registry, my problem is that:
How to get actual executable file path?

There are lots of command line modes in Registry:

c:\program files\cccc\aaa.exe /i
c:\program files\cccc\aaa.exe -i
"c:\program files\cccc\aaa.exe" /i
c:\program files\cccc\aaa.exe -i %1
"c:\program files\cccc\aaa.exe /i"

I ONLY want to get the actual executable file path "c:\program
files\cccc\aaa.exe",
is there a standard syntax or examples code?

Thank you very much
 
Hi yxq,
You want to use a Regex expression to do what you want.
See microsofts website for details about the regex language.

Search for regular expressions regex language.

Good luck.
 
Back
Top