Closed goyetus closed 3 years ago
Custom Code for run it:
Start-ChiaParallelPlotting -WindowName SSD_Sabrent
function Start-ChiaParallelPlotting { [String]$WindowName, [Parameter(Mandatory)] }
$processParam = @{ FilePath = "powershell.exe" ArgumentList = "$NoExitFlag -Command Start-ChiaPlotting -TotalPlots $plotsperQueue -Buffer $Buffer -Threads $Threads -TempDirectoryPath $TempDirectoryPath -FinalDirectoryPath $FinalDirectoryPath -LogDirectoryPath $LogDirectoryPath -WindowName $WindowName -QueueName Run_$Queue" }
$host.ui.RawUI.WindowTitle = "$WindowName | $QueueName - Plot $plotNumber of $TotalPlots | Chia process Id - $($chiaProcess.id)"
Nice, I would like it to not be mandatory since not everyone will want to change it. Possibly add a default value and take away the mandatory parameter attribute and I will merge it.
Dont Know how to merge again (Im noob in Github).
Here you have the Changes you ask me.
Tested with WindowName Parameter and Without it Removed Mandatory Tested if is Null Or Empty or Null and Empy goyetus/PSChiaPlotter@1f0c250 goyetus/PSChiaPlotter@514ee8f
if ([string]::IsNullorEmpty($WindowName)) { $WindowName = "TEST" }
I have added this with the latest merge on my branch. Thank you for the suggestion and the suggested code.
Version 1.0.5 Updated and working perfect :)
THANKS !!!! :)
Adding custom $WindowName Parameter to your Script (For multiple Plotting in different SSD) Example: Plot 1 : SSD Sabrent. Plot 2: SSD 960 Evo ....
Code Uploaded to: https://github.com/MrPig91/PSChiaPlotter/pull/30/commits/f4f360b84050ec3c7fd0c817d2146a32d10de06a
Pull Request:
30
Code below :