is the path getting passed in? OR is it in an ini file that is read... Either way you could parse the first few characters for the usual windows / dos format and branch that way....