Add:

? "@error @serror"

after your USE statement. What is returned?

$Drive = "O:" $Path = "\\server2\dp my files"
USE $Drive /Delete
USE $Drive $Path
? "@error @serror"
_________________________
Home page: http://www.kixhelp.com/hb/