I would like to know if there is a Powershell ISE command to schedule a .flac file to open at a specific time (and a cancel command)
You can register a scheduled task using the Register-ScheduledTask cmdlet.
$Time = New-ScheduledTaskTrigger -At 12:00 -Once $User = "Contoso\Administrator" $PS = New-ScheduledTaskAction -Execute "C:\folder\a.flac" Register-ScheduledTask -TaskName "openflac" -Trigger $Time -User $User -Action $PS
To cancel the task run Unregister-ScheduledTask
Unregister-ScheduledTask -TaskName "openflac"
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
maybe this will help:
Start-Process -Filepath "vlc.exe something.flac" Stop-Process -Name "vlc"
Create scripts (start and stop script) and use the Task Scheduler to schedule the scripts.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
If you can't run scripts you posted in the wrong area! :-)
You can try this, though: how-create-task-using-task-scheduler-command-prompt
You can run SCHTASKS from the PowerShell shell as well as from the cmd shell. Start Powershell with "run as administrator".
Seems like you're trying to subvert the admin's blocking you from doing things. Why not discuss this with that person?
13 people are following this question.