I know what the file is that the script is trying to open.

It's the last.cfg.

It doesnt return any error message, simply exists the script.

If I was to remove the IF Open statement and simply write to the file it works ok.

For W2K machines the script works fine.

Kiitos