Search found 3 matches
- 13 May 2023 01:50
- Forum: DOS Batch Forum
- Topic: Ping if unsuccessful disable and enable NIC
- Replies: 1
- Views: 2323
Ping if unsuccessful disable and enable NIC
Hello, I have some issues with a computer which for some for me unknown reason goes out of network. Until I find a problem and solution I would like to have a script that will: - Ping xxx.xxx.xxx.xxx - If get response does nothing - If don't get a response have to check again within 180 sec and if d...
- 15 Feb 2023 07:37
- Forum: DOS Batch Forum
- Topic: batch delete specific dates
- Replies: 1
- Views: 2351
Re: batch delete specific dates
I did manage to put something that can be useful as a start: ForFiles /p f:\iCentar-BackUps\15-02-2023\ /s /d -2 /c "cmd /c del @file" That is just for folders under the name 15-02-2023 which is also the creation date of that folder. If I want to use this I will have to change creation date every mo...
- 11 Feb 2023 03:30
- Forum: DOS Batch Forum
- Topic: batch delete specific dates
- Replies: 1
- Views: 2351
batch delete specific dates
Hello, Each night I have backup files, like multiple folders with files in those folders. Files names in the folders are irrelevant for this question, but every file has a creation date. So basically in each folder, I have multiple files with the same name but different creation dates. Each morning ...