Thread: Getting a File Name from a File Launch String

  1. #1
    Registered User
    Join Date
    Nov 2005

    Getting a File Name from a File Launch String

    I am reading in the value data from a registry value in HKLM/Software/Microsoft/Windows/CurrentVersion/Run. I am trying to determine the path to file that is being launched from the value. To do, so I need to be able to parse out the parts of the value data that are not part of the file path (any command line parameters specified, quotation marks, etc).

    Is there any API value that will parse it for me like Windows does?

    If there is not, is it documented somewhere how Windows parses those strings? If I create my own function to do so, I want it to work exactly like Windows does when it parses it.

    Thank you for any help you can provide.

  2. #2
    Join Date
    Jan 2002
    PathGetArgs and other Shell Path Handling Functions may be of interest.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. disposing error
    By dropper166 in forum C# Programming
    Replies: 2
    Last Post: 03-30-2009, 11:53 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. Replies: 6
    Last Post: 01-03-2007, 03:02 PM
  5. Linked List Help
    By CJ7Mudrover in forum C Programming
    Replies: 9
    Last Post: 03-10-2004, 10:33 PM