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
' default path to collect event log. | |
path = "C:\path\to\eventlog" | |
' arg0 is path | |
Dim oParam | |
set oParam = WScript.Arguments | |
If oParam.Count > 0 Then | |
path = oParam(0) | |
End If |
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
Option Explicit | |
''' Main Function | |
' Arguments | |
Dim msiPath | |
Dim propertyName | |
GetArguments() | |
' Open database to access msi file's property | |
Dim installer |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Softwares xmlns="http://t2wonderland.blogspot.jp/ns/softwares"> | |
<Name>Softwares</Name> | |
<Version>1.0.0</Version> | |
<SoftwareList> | |
<SoftwareInfo> | |
<MsiPath>data/go1.7.3.windows-amd64.msi</MsiPath> | |
<ProductVersion>1.0.0</ProductVersion> | |
</SoftwareInfo> | |
</SoftwareList> |
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
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"time" |
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
// Copyright 2017 Hajime Hoshi | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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
package main | |
import ( | |
"fmt" | |
"path/filepath" | |
) | |
func main() { | |
paths := []string{ | |
filepath.Join("path", "to", "file.name.hoge.name"), |
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
package main | |
import ( | |
"log" | |
"os" | |
) | |
const ( | |
exitCodeOK int = iota | |
exitCodeFailed |
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
# 日本語を含むパスで文字化けします | |
$ cygpath -w `pwd` | tr -d '\n' | clip |
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
package main | |
import ( | |
"log" | |
"os" | |
"path/filepath" | |
) | |
const ( | |
exitCodeOK int = iota |
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
@echo off | |
setlocal enabledelayedexpansion | |
rem set the result of the "git rev-parse --short HEAD" to the variable 'rev' | |
for /f "usebackq tokens=*" %%a in (`git rev-parse --short HEAD`) do @set rev=%%a | |
set GOOS=windows | |
set GOARCH=amd64 | |
go build -ldflags "-X main.Revision=%rev%" | |
endlocal |
OlderNewer