psexec to delete print spooler not working
I am trying to create a script so I can quickly wipe a print spool folder and have the following simple script:
I am running this on the server (will make it work remotely later) but get the following error
psexec.exe net stop "print spooler"
psexec.exe del "x:\spool\*.*"
psexec.exe net start "print spooler"
The spooler does stop and then start and I am logged in as an admin. I have triple checked the x:\spool is the correct location and even given full security to domain users on this folder.
psexec could not start del
The system cannot find the file specified
Any idea or alternatives