MicrosoftDocs / sysinternals

Content for sysinternals.com
http://sysinternals.com
Creative Commons Attribution 4.0 International
482 stars 262 forks source link

Issue with Parsing Command Lines with Arguments in 'Image Path' #753

Open 486DX50 opened 1 year ago

486DX50 commented 1 year ago

Environment:

Description: There appears to be a parsing issue in Autoruns where command lines with arguments are incorrectly recognized as a single command under the 'Image Path' tab. This results in Autoruns being unable to locate the specified file when additional arguments are present in the command line.

Steps to Reproduce:

  1. Open Autoruns.
  2. Navigate to the tab where Autoruns lists startup items (likely under 'Logon' or similar).
  3. Observe any entry where the command line includes an executable with additional arguments.

Expected Behavior: Autoruns should correctly parse the command line, recognizing the file path and the arguments as separate entities. The 'Image Path' should only reflect the path to the executable file.

Actual Behavior: Autoruns concatenates the file path and the arguments into one string, treating them as a single file path. For example, the command line "C:\Program Files\ShareX\ShareX.exe" -silent is incorrectly recognized as "C:\Program Files\ShareX\sharex.exe -silent" as one part.

Impact: This issue causes Autoruns to be unable to locate the file, as it searches for a non-existent file (in this case, "sharex.exe -silent"). This could lead to confusion and misinterpretation of startup items and potentially important configurations being missed or incorrectly handled.

Additional Information:

I hope this information is helpful for resolving this issue.

Thank you.

foxmsft commented 1 year ago

I confirm, thanks!