Dear Mark,
Your code using a with constant date works good , but when using with a variable(what i need) does't.
I don´t know if is the way i tell the CMD.EXE to use the variable(NewDate)...
Trying to use your code, i have the following situation,
message from teh CMD.EXE window...