Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Update SchTask.cs#5

Open
mohinparamasivam wants to merge 7 commits intomandiant:masterfrom
mohinparamasivam:master
Open

Update SchTask.cs#5
mohinparamasivam wants to merge 7 commits intomandiant:masterfrom
mohinparamasivam:master

Conversation

@mohinparamasivam
Copy link
Copy Markdown

  1. Added new minutes feature for Schedule Task
  2. Added code to evaluate the optional additional parameter "-o" where the number specified after keywords "hourly / minutes or daily" are converted into integer and calculated into interval timings. This enables the operator to perform persistence on a custom interval timing.

Example : SharPersist -t schtask -c "C:\Windows\System32\cmd.exe" -a "/c echo 123 >> c:\123.txt" -n "Some Task" -m add -o "minutes 5"

Note : Example Above will create the schedule task that will execute every 5 minutes. Same example goes for hourly and daily option.

@mohinparamasivam
Copy link
Copy Markdown
Author

mohinparamasivam commented Sep 3, 2022

@h4wkst3r Pls do review this pull request

@mohinparamasivam
Copy link
Copy Markdown
Author

mohinparamasivam commented Sep 3, 2022

Commit : 029bfbe

  1. Added "Last Runtime" Info for Scheduled Task when listing is performed
  2. Updated usage of schtasks command with the -o frequency in the Main Function when -h is used
  3. Added additional checks when listing is performed based on frequency (Previously it lists all tasks without following the specified frequency)

@h4wkst3r
Copy link
Copy Markdown
Contributor

h4wkst3r commented Sep 6, 2022

Hi @mohinparamasivam - This is now actively being maintained on my personal fork of SharPersist. Please submit this pull request to https://github.com/h4wkst3r/SharPersist and I can review it. Thank you for submitting!

@mohinparamasivam
Copy link
Copy Markdown
Author

@williballenthin Please update the main branch with these commits as pushed here https://github.com/h4wkst3r/SharPersist . Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants