jamin100 Posted March 19, 2009 Posted March 19, 2009 I need a script that will delete every file & folders from a network share. We have a networked photocopier that also doubles up as a scanner and scans documents to a network share. I want to run a script everyweekend that will delete the contents of that share so that its empty again Monday morning. Its located in \\server\scans Can be VBS or BAT - anything that i can run as a scheduled task on my server. Thanks -Ben
dwhyte85 Posted March 19, 2009 Posted March 19, 2009 (edited) Command is: del /s /q /f \\path\to \\path\to could be c:\path\to as well so... providing you have perms to do it, easy peasy hooray. Apologies, did not realise folder deletion was required - assumed all within one dir - sorry! Edited March 19, 2009 by dwhyte85 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now