You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(create text file. add scrypt to file. change file extension to .reg execute file and click yes to add to registry. .ps1 files can now be run by double clicking them)
To stop windows auto closing just add the following to the end of the scrypt (remove 1st colon):
,# If running in the console, wait for input before closing.
if ($Host.Name -eq "ConsoleHost")
{
Write-Host "Press any key to continue..."
$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyUp") > $null
}
To stop the progress window getting in the way of copying and pasting add the following:
Write-Progress -Activity "Collecting Episode Data from TheTVDB" -Status "Ready" -Completed
(must be added at the end of the last section as shown in example below)
ForEach ($Show in ($Missing.Keys | Sort-Object)) {
ForEach ($Season in ($Missing[$Show].airedSeason | Sort-Object -Unique)) {
$Episodes = $Missing[$Show] | ? { $_.airedSeason -eq $Season }
ForEach ($Episode in $Episodes) {
"{0} S{1:00}E{2:00} - {3}" -f $Show,[int]$Season,[int]$Episode.airedEpisodeNumber,$Episode.episodeName
}
}
Write-Progress -Activity "Collecting Episode Data from TheTVDB" -Status "Ready" -Completed}
The text was updated successfully, but these errors were encountered:
You can do it that way. I prefer to have it as an auto executable file that way I can just click on it and it will run. Rather than having to open it in power shell and then run it each time I need it. Suppose it depends on how often you use the script and how easy you would like the process
To make file auto exacutable create a registry edit file as follows:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Open\Command]
@=""C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noLogo -ExecutionPolicy unrestricted -file "%1""
(create text file. add scrypt to file. change file extension to .reg execute file and click yes to add to registry. .ps1 files can now be run by double clicking them)
To stop windows auto closing just add the following to the end of the scrypt (remove 1st colon):
,# If running in the console, wait for input before closing.
if ($Host.Name -eq "ConsoleHost")
{
Write-Host "Press any key to continue..."
$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyUp") > $null
}
To stop the progress window getting in the way of copying and pasting add the following:
Write-Progress -Activity "Collecting Episode Data from TheTVDB" -Status "Ready" -Completed
(must be added at the end of the last section as shown in example below)
ForEach ($Show in ($Missing.Keys | Sort-Object)) {
ForEach ($Season in ($Missing[$Show].airedSeason | Sort-Object -Unique)) {
$Episodes = $Missing[$Show] | ? { $_.airedSeason -eq $Season }
ForEach ($Episode in $Episodes) {
"{0} S{1:00}E{2:00} - {3}" -f $Show,[int]$Season,[int]$Episode.airedEpisodeNumber,$Episode.episodeName
}
}
Write-Progress -Activity "Collecting Episode Data from TheTVDB" -Status "Ready" -Completed}
The text was updated successfully, but these errors were encountered: