A study by physicist Henry Tye of Cornell University suggests that the universe may not expand forever. Instead, it could eventually stop expanding, begin contracting and end in a "Big Crunch" roughly 20 billion years from now.
Maybe not as we now know that time can flow backwards.
It is clear from this aricle that "Time Is On My Side" no matter which direction it is flowing.,
https://noai.duckduckgo.com/?i...m%2Fwatch%3Fv%3DsEj8lUx0gwY
Matt Dinniman
I’m happy to announce that our friends at Peacock have officially greenlit the Dungeon Crawler Carl television series! Me, Chris Yost and Seth MacFarlane and his team at Fuzzy Door are all really excited to get to work. In the coming weeks I'll have more details, and if you're going to SDCC be sure to catch me and Chris on our DCC panel, but in the meantime I wanted to thank you, the fans, for helping make this happen.
— with Peacock TV and Seth MacFarlane.
Recent Achievements
BizSAR earned a badge Reacting Well
AndreaB earned a badge First Post
Huge Trailer earned a badge Week One Done
Classifyskilleducation earned a badge Week One Done
Question
jmander
Hello,
I am trying to write a batch script that will run automatically daily to do the following.
1. Move files older than 2 days to from the main directory(Jason) to archive directory.
2. Zip files in the archive directory that are older than 1 week and delete files from this directory
that are older than 6 months.
3. I want to run this script from a different directory(not the directory that has the files).
I wrote the following script but its not correctly working. Can you please help.
REM move files older than 2 days to a archive directory
robocopy D:\Agentrics\integration\incoming\Jason D:\Agentrics\integration\incoming\Jason\archive /MOV
/MINAGE:2
Question: How can i change the command below to zip files older than 1 week. Also i want to put this
command in a batch file that will run from a different location? Is it possible that the zipped files
can have the same creation date and time as the original files?
REM zip all files in the backup directory
FOR %%A IN (*.TXT*, *.cpi*) DO "C:\Program Files\WinRAR\WinRAR.exe" a -r "%%~nA.zip" "%%A"
FOR %%A IN (*.TXT,*.cpi) DO DEL "D:\Agentrics\integration\incoming\Jason\archive\.cpi*" "%%A"
REM Delete all files in the backup directory that are older than 6 months
forfiles /p D:\Agentrics\integration\incoming\Jason\archive /s /m *.* /d -500 /c "cmd /c del /q @path"
Kind Regards,
Jason
Link to comment
https://www.neowin.net/forum/topic/1138966-batch-file-to-move-compress-delet3-files/Share on other sites
9 answers to this question
Recommended Posts