OK I am looking for an API Function that can hopefully parse a command line and file path. If no API Exists to do this, does anyone have any simple functions to perform the task:

Example:
Code:
Dim sPath as String: sPath = "C:\Documents and Settings\something.exe -a -t -k -v"

Dim sFile as String: sFile = GetFile(sPath)
Dim sCmd as String: sCmd = GetCmd(sPath)

Making the following true:
sFile = "C:\Documents and Settings\something.exe"
sCmd = "-a -t -k -v"

So I need some file and command line parser either in WinAPI or some custom made function.
Anyone care to share a solution or idea. Feel Free. This has been bugging me for months.