Jump to content

Recommended Posts

Posted

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

Posted (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 by dwhyte85
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...