Outsystems Job to Clean up ASP.Net temporay files 

Outsystems Job to Clean up ASP.Net temporay files 

  
Hi All,

Is there any way to clean up the ASP.Net temporay files generated by platform by creating an job in outsystems.I found a similar posting in below path.Can I automate this by creating a Job in outsystems?

http://www.outsystems.com/forums/discussion/5478/how-to-optimizing-disk-usage-by-temporary-asp-net-files/


Thanks,
Prashanth Reddy CH

Hi,

This is a good reference document. You can probably write your own batch file to clean up where/what you want.

As I understand the platform does not have this inbuilt functionality (apart from deleting old versions of espaces, which has to been run manually anyhow)

http://www.outsystems.com/goto/disk-space-usage-guide
Mark Bayles wrote:
Hi,

This is a good reference document. You can probably write your own batch file to clean up where/what you want.

As I understand the platform does not have this inbuilt functionality (apart from deleting old versions of espaces, which has to been run manually anyhow)

http://www.outsystems.com/goto/disk-space-usage-guide
 Hi,

Thanks for reply.

Can I automate this by creating a timer job in outsystems and executing .bat file? . I want to clean up the ASP.NET temp files through outsystem job only rather scheduling the .bat file through windows task scheduler.

Thanks,
Prashanth

 
we run the following script on a daily bases:

Get-ChildItem '\\[SERVERNAME]\C$\TemporaryASP' -ErrorAction SilentlyContinue | Where-Object { $_.PSIsContainer } | ForEach-Object { Get-ChildItem $_.FullName | Where-Object { $_.PSIsContainer } | Sort-Object CreationTime -Descending | Select-Object -Skip 1 | ForEach-Object { Remove-Item $_.FullName -Force -Recurse -ErrorAction SilentlyContinue -Verbose }}.

Per espace, it will only keep the most recent sub folder.
Hi

You can also use the script provided here - it has similar functionality:

http://www.outsystems.com/forums/discussion/5478/how-to-optimizing-disk-usage-by-temporary-asp-net-files/

Acácio