Script to clean up windows virtual server temp folder 1 hr old
Closed
shubh25
Posts
2
Registration date
Monday November 26, 2012
Status
Member
Last seen
November 26, 2012
-
Nov 26, 2012 at 01:13 AM
shubh25 Posts 2 Registration date Monday November 26, 2012 Status Member Last seen November 26, 2012 - Nov 26, 2012 at 01:16 AM
shubh25 Posts 2 Registration date Monday November 26, 2012 Status Member Last seen November 26, 2012 - Nov 26, 2012 at 01:16 AM
Related:
- Script to clean up windows virtual server temp folder 1 hr old
- Virtual succubus - Download - Adult games
- Kmspico windows 10 - Download - Other
- Tentacle locker 1 - Download - Adult games
- Fnaf 1 download pc - Download - Horror
- How to clean virtual memory - Guide
1 response
shubh25
Posts
2
Registration date
Monday November 26, 2012
Status
Member
Last seen
November 26, 2012
Nov 26, 2012 at 01:16 AM
Nov 26, 2012 at 01:16 AM
Few of them i tried were
@echo off
cd /d "%temp%"
rd /s /q "%temp%"
But its deleting each and every file, wasn't able to find an option in scheduler to delete one hour old files.
Other script:
dir c:\temp |
?{-not $_.PsIsContainer} |
?{$_.CreationTime -lt [datetime]::Now.AddHours(-1)} |
%{Remove-Item $_ -WhatIf}
Unsure, whether it needs some more customization...its not running at all...!
@echo off
cd /d "%temp%"
rd /s /q "%temp%"
But its deleting each and every file, wasn't able to find an option in scheduler to delete one hour old files.
Other script:
dir c:\temp |
?{-not $_.PsIsContainer} |
?{$_.CreationTime -lt [datetime]::Now.AddHours(-1)} |
%{Remove-Item $_ -WhatIf}
Unsure, whether it needs some more customization...its not running at all...!