Brilliant stuff Tux, works like a charm. Always wondered what ParamStr actually did. Alyways used it to get the file path for my exe and that was it. It's actually a pretty useful function. Thanks again