File rotation via BAT or Powershell command

Completed Posted 2 years ago Paid on delivery
Completed Paid on delivery

Hi,

I have a simple powershell script:

Get-Process | Where-Object {$[login to view URL] -ne ""} | Select-Object MainWindowTitle

I need it to run every 20 minutes (as a Windows scheduled task) and put the result to a file in

%userprofile%\Documents\.CurrentOpenWindows with filename yyyy-mm-dd hh-mm-ss - [login to view URL]

It needs to also remove any log files older than 24 hours.

The purpose of this is that sometimes a program (e.g. Outlook) crashes and I lose track of the windows that were open so I want a way I can look back and see what was open.

Shell Script Powershell

Project ID: #32421024

About the project

3 proposals Remote project Active 2 years ago

Awarded to:

annisonkusare

Hello, I am powershell developer having strong knowledge on writing scripts. I have already created similar task for database log files earlier which deletes log files older than particular retention value. If you can More

$30 USD in 7 days
(1 Review)
1.2

3 freelancers are bidding on average $37 for this job

goodwork20k

Hello, I am a powershell and bat expert I can help you to make bat script and implement your project Please ping me for further discussion thanks

$40 USD in 1 day
(113 Reviews)
6.6
predraghristov

====POWERSHELL Expert==== Hi, I am a senior powershell script Developer from Serbia.. I have already checked your requirement, and I can help you to run as you want. If you want me, I will do my best to help you. Pleas More

$40 USD in 1 day
(0 Reviews)
0.0