Thanks Lonkero & sealeopard for your suggestions BUT I am still having the same problem.

Like Headbanger, when ran during the login procedure I get "Bad comand or file name" even if I tell it to run from c:\ .

It runs fine after I have logged in.
I thought that there might be a problem passing variables through to the command but if that was the case then it should still not work after I have logged in!!!

I have tested the SHELL command by telling it to do a DIR of c:\. This works fine.

Puzzling ay!