Does it help any if I use the LEN command? I can make a variable out of the drive and directory (F:\AGG or F:\CMD Files). That way you could just count over that many characters and then extract from there.