Apologies, I had looked at special variables, but not far enough, in winxp $0 provides a full path of the current script. Sorry for the bother Robert