wbhartmanii
Member
Running 2 instances of RadioFeed on my Win10 machine.
(I'm a software developer)
I'm making a PowerShell script that will run occasionally to automatically ensure that there are 2 instances running. If not, it will kill all instances and restart. The idea is that it will auto recover from a crash or any funny behaviors that happen from being up and unattended too long.
Here is a simple version of the script:
#If it's running, kill it and wait 3 seconds for good measure and let any files unlock
If ((Get-Process -Name RadioFeed -ErrorAction SilentlyContinue))
{
Stop-Process -Name "RadioFeed" -Force
Start-Sleep -s 3
}
#Start both versions
Start-Process -FilePath "E:\Programs\RadioFeed\RadioFeed - Marine\RadioFeed.exe"
Start-Process -FilePath "E:\Programs\RadioFeed\RadioFeed - Aviation\RadioFeed.exe"
The issue I'm having is that if I run the .ps1 in the PowerShell ISE it works great just as expected. But if I run it as a scheduled task, the launch of the application fails. It does start, but I get a message box from the application with this error: (well - 2 identical message boxes actually, 1 for each instance I started)
Can Not Find The File: ProScan1.dll In The Application Folder.
Check For The File Or Install The Complete Package.
Any ideas what might be happening in the apps? Permissions? File access clashes? I'm running the task as my username and with highest privileges.
(I'm a software developer)
I'm making a PowerShell script that will run occasionally to automatically ensure that there are 2 instances running. If not, it will kill all instances and restart. The idea is that it will auto recover from a crash or any funny behaviors that happen from being up and unattended too long.
Here is a simple version of the script:
#If it's running, kill it and wait 3 seconds for good measure and let any files unlock
If ((Get-Process -Name RadioFeed -ErrorAction SilentlyContinue))
{
Stop-Process -Name "RadioFeed" -Force
Start-Sleep -s 3
}
#Start both versions
Start-Process -FilePath "E:\Programs\RadioFeed\RadioFeed - Marine\RadioFeed.exe"
Start-Process -FilePath "E:\Programs\RadioFeed\RadioFeed - Aviation\RadioFeed.exe"
The issue I'm having is that if I run the .ps1 in the PowerShell ISE it works great just as expected. But if I run it as a scheduled task, the launch of the application fails. It does start, but I get a message box from the application with this error: (well - 2 identical message boxes actually, 1 for each instance I started)
Can Not Find The File: ProScan1.dll In The Application Folder.
Check For The File Or Install The Complete Package.
Any ideas what might be happening in the apps? Permissions? File access clashes? I'm running the task as my username and with highest privileges.