Skip to content

Commit

Permalink
Fixes #20 - There was a problem when the script was inside a director…
Browse files Browse the repository at this point in the history
…y with a space.

Also fixed errors when the logs directory didn't exist.
  • Loading branch information
sp00n committed May 6, 2021
1 parent 9985815 commit d7fb423
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Run CoreCycler.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
echo Starting the CoreCycler...
start "CoreCycler" cmd.exe /k powershell.exe -ExecutionPolicy Bypass -File %~dp0script-corecycler.ps1
start "CoreCycler" cmd.exe /k powershell.exe -ExecutionPolicy Bypass -File "%~dp0script-corecycler.ps1"
exit
10 changes: 8 additions & 2 deletions script-corecycler.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.AUTHOR
sp00n
.VERSION
0.8.2.0
0.8.2.1
.DESCRIPTION
Sets the affinity of the selected stress test program process to only one core and cycles through
all the cores to test the stability of a Curve Optimizer setting
Expand All @@ -17,7 +17,7 @@
#>

# Global variables
$version = '0.8.2.0'
$version = '0.8.2.1'
$startDate = Get-Date
$startDateTime = Get-Date -format yyyy-MM-dd_HH-mm-ss
$logFilePath = 'logs'
Expand Down Expand Up @@ -3606,6 +3606,12 @@ function Get-Prime95LogfileEntries {
Write-Host('Starting the CoreCycler...')


# We need the logs directory to exist
if ( !(Test-Path -Path $logFilePathAbsolute) ) {
$null = New-Item $logFilePathAbsolute -Itemtype Directory
}



# Get the default and the user settings
# This is early because we want to be able to get the log level
Expand Down

0 comments on commit d7fb423

Please sign in to comment.