This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory)][string] $filename | |
) | |
if($filename -eq "" -Or !(Test-Path -Path $filename)) { | |
Write-Host -ForegroundColor Red 'Usage: powershell -file .\format-solaredge-wallbox-csv.ps1 "C:\Users\micha\Downloads\EV charging history 2022.csv"' | |
Return | |
} | |
$year = $filename -replace ".*(20\d\d).*","`$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------ | |
System Information | |
------------------ | |
Time of this report: 7/20/2019, 19:27:21 | |
Machine name: BUTTERFLY | |
Machine Id: {954172FF-D1D9-4AB7-A41C-FEC852AE720C} | |
Operating System: Windows 10 Pro 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434) | |
Language: German (Regional Setting: German) | |
System Manufacturer: ASUSTeK COMPUTER INC. | |
System Model: UX360UAK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
namespace RoyalMobileApps.XF.Helpers | |
{ | |
public struct Version | |
{ | |
private readonly int[] parts; | |
public Version(string version) |