Batch delete all files

Soldato
Joined
18 Oct 2002
Posts
7,515
Location
Maidenhead
Hi all,

Im looking to create a batch or script file to delete all files in a specified folder (and all sub folders), but to leave the directory structure in tact.

Its basically to purge a temporary file storage area.

TIA
 
if it doesn't like UNC paths (can't remember if it does or not), then map that drive as say V:\

net use v: \\viking\groups\scanning\

then you can

del /q /s V:\*.*
 
Back
Top Bottom