Need to delete files and folders automatically

anonymous_at_discussions.microsoft.com
Date: 01/29/04


Date: Thu, 29 Jan 2004 12:45:05 -0800

I need to delete files and folders from a certain
directory on my server each night. Example, I have
directory D:\image, in image I use as a tempory storage
place for scanned images, I want to delete all the files
and folders in D:\image on nightly basis, but do not want
to remove the image directory.

I have tried to use the rmdir, del command in DOS to write
a batch file, but it either removes the Image directory
(can not allow because it is shared) or it will remove all
files but not the folders.

Thanks in advance for the information.



Relevant Pages

  • Re: NTFS Compression
    ... > would be required to uncompress all the folders. ... >> disable compression on NTFS volumes, ... Create a batch file using the compact.exe command to uncompress all ... >> and folders on the data volume on your server e.g.: ...
    (microsoft.public.windows.server.setup)
  • Re: Sp1 and Eval SBS 2003 Unable to Install
    ... > * Use Outlook to export the contents in the public folders to .pst files ... > partition and clean install SBS 2003 server. ... > Another way is to create a local profile, ...
    (microsoft.public.windows.server.sbs)
  • Re: Sp1 and Eval SBS 2003 Unable to Install
    ... * Use Outlook to export the contents in the public folders to .pst files ... partition and clean install SBS 2003 server. ... Another way is to create a local profile, ...
    (microsoft.public.windows.server.sbs)
  • RE: Offline Address Book error on send/receive
    ... Hi Jenny...I've done this reset successfully on a test server so I will be ... The folders are system folders. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: no remote folder in Remote Web Workplace
    ... You can check the files and folders for RWW site as follows (You can find ... no remote folder in Remote Web Workplace ... If the value of the key is '1', it reveals the server is at SP1. ...
    (microsoft.public.windows.server.sbs)