- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- deleting files by date
Operating System - Microsoft
1752272
Members
5762
Online
108786
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 06:55 AM
тАО05-29-2002 06:55 AM
deleting files by date
Does anyone have a technique for deleting files on an NT/w2000 server based on date criteria? Is there a command or utility similar to the Unix "find -ctime -exec"?
thanks...
...Peter
thanks...
...Peter
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 08:07 AM
тАО05-29-2002 08:07 AM
Re: deleting files by date
http://download.com.com/3000-2248-6718234.html?legacy=cnet
Should work. If not just go to www.shareware.com and search for: delete old files. Seems to be a lot of them.
Ron
Should work. If not just go to www.shareware.com and search for: delete old files. Seems to be a lot of them.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 09:23 AM
тАО05-29-2002 09:23 AM
Re: deleting files by date
Hi Peter,
Not Yet...
The delete commands is as follows:
Deletes one or more files.
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directo
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wil
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for arc
- Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
However, deleting files depending on date is a common administrative task. To delete all files within a root folder and its subfolders depending on a last modified date, proceed as follows:
1. Create a new directory to store all files included in this example.
2. Download and install the latest version of Windows Script Host, from http://www.microsoft.com, to the new directory.
3.Select Start|Run and enter "cscript scriptfile.vbs".
Here, scriptfile is the full path and file name of a script tile that contains the following:
See attachment
Not Yet...
The delete commands is as follows:
Deletes one or more files.
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directo
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wil
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for arc
- Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
However, deleting files depending on date is a common administrative task. To delete all files within a root folder and its subfolders depending on a last modified date, proceed as follows:
1. Create a new directory to store all files included in this example.
2. Download and install the latest version of Windows Script Host, from http://www.microsoft.com, to the new directory.
3.Select Start|Run and enter "cscript scriptfile.vbs".
Here, scriptfile is the full path and file name of a script tile that contains the following:
See attachment
If it aint broke, can I have it?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP