Need a visual basic 6 function. The file path will be passed to this function. This file path might contain quotes, one or more arguments or might be a RUNDLL or REGSVR32 command. The returned value must be the file path only. If the function is passed a file name only (no path), then it must convert it to the full path in the Windows or System32 folder. This must work with 32 and 64 bit operating systems. The compiled code will be ran as a 32bit process. For clarity, here is what I need to accomplish. I already have code that pulls file paths from various auto-starts in the registry such as HKLM RUN, services, drivers, etc. The paths are returned contain quotes, args, file only or they are a RUNDLL or REGSVR32 command. In order for me to get file sizes, version, etc, I need the path only. I wrote my own, but it is buggy.