Quote:

can get it to work this way
shell 'deltree /y "C:\Documents and Settings\dir_to_delete"'





What operating systems are we talking about here? I certainly hope the Air Force or whomever is not still running Windows 95/98 systems in production.

DELTREE does not exist on my NT4/2000/XP/2003 systems so if it's working (semi-working) for you then we must be talking about a Windows 95/98/ME system which would mean the RD code I wrote would not work either as Windows 95/98 used a different switch as I recall.