This file contains hidden or 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
#190508 | |
#ユーザ設定 | |
$Settings = | |
@{ | |
#Input,Output指定: Output\input.txt Inputのみ指定: Input\input.txt | |
#BGM素材入力ディレクトリ | |
Input = "C:\Users\sbn\Music\audiolibrary" | |
#Input = "C:\Users\sbn\Music\minecraft\sounds\music" | |
#Input = "C:\Rec\audiolibrary" |
This file contains hidden or 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 | |
rem 190408 | |
rem 引数を表示 | |
set cnt=0 | |
setlocal enabledelayedexpansion | |
for %%a in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do ( | |
if not %%a == "" ( | |
set /a cnt+=1 | |
echo !cnt!.%%a |
This file contains hidden or 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
#190424 | |
#for pwsh linux | |
#requires -version 6.1 | |
#$PSName = "$(Split-Path $PSCommandPath -Parent)/$(Split-Path $PSCommandPath -Leafbase)" | |
$PSName = $PSCommandPath.Replace('.ps1','') | |
#投稿関数 | |
function Post-Discord($i) | |
{ |
This file contains hidden or 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
#--------------------tsの自動削除の設定-------------------- | |
#録画フォルダの上限 超過した場合、toggle=0:容量警告(Twitter、Discord) 1:削除 | |
$ts_folder_max=7TB | |
#====================ts・mp4の自動削除==================== | |
#フォルダの合計サイズを設定値以下に丸め込む関数 | |
function FolderRound { | |
#初期値 | |
$delcnt=-1 | |
#必ず1回は実行、フォルダ内の新しいファイルをSkipする数$iを増やしていって$maintsizeを$ts_folder_max以下に丸め込むループ |
This file contains hidden or 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
#180719 | |
#タイトルバーに表示 | |
(Get-Host).UI.RawUI.WindowTitle="startup" | |
#====================ユーザ設定==================== | |
#--------------------Twitter-------------------- | |
#ruby.exe | |
$ruby_path='C:\Ruby24-x64\bin\ruby.exe' | |
#tweet.rb | |
$tweet_rb_path='C:\DTV\EDCB\tweet.rb' |
This file contains hidden or 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
#181228 | |
<# | |
ParentCountMin = 1 | |
ParentInterval = 3 | |
IfParentCountOver = "rendiff" | |
Gen: 0123456789A... | |
Parent: PPPPPPR <-Rename | |
Child: CCCCCX <-Delete |
This file contains hidden or 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
#180711 | |
#_EDCBX_HIDE_ | |
#視聴予約なら終了 | |
if ($env:RecMode -eq 4) { exit } | |
#====================ユーザ設定==================== | |
#--------------------Twitter-------------------- | |
#ruby.exe | |
$ruby_path='C:\Ruby25-x64\bin\ruby.exe' | |
#tweet.rb |
This file contains hidden or 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 | |
set /p length=文字数: | |
set /p ask=1=数、3=英数、4=英数記号: | |
powershell -NoProfile -ExecutionPolicy Unrestricted -Command "& { switch ("%ask%") {"1" {$characters='123456789'}"3" {$characters='abcdefghkmnprstuvwxyzABCDEFGHKLMNPRSTUVWXYZ123456789'}"4" {$characters='abcdefghkmnprstuvwxyzABCDEFGHKLMNPRSTUVWXYZ123456789!$^&/()=?*+#_'}}; -join ${characters}[(1..%length% | ForEach-Object { Get-Random -Maximum ${characters}.length })] }" | |
pause |
This file contains hidden or 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 | |
rem D&Dした複数ファイルを表示 | |
set cnt=0 | |
setlocal enabledelayedexpansion | |
for %%a in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do ( | |
if not %%a == "" ( | |
set /a cnt+=1 | |
echo !cnt!.%%a | |
) | |
) |
This file contains hidden or 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 | |
rem ====================環境変数設定==================== | |
rem youtube-dl.exeのパス | |
set "ytdl_path=C:\DTV\bin\youtube-dl.exe" | |
rem ffmpeg.exeがあるディレクトリのパス | |
set "ff_dir=C:\DTV\ffmpeg" | |
rem vlc.exeのパス | |
set vlc_path= | |
rem 出力フォルダのパス |