Skip to content

Instantly share code, notes, and snippets.

@nyanshiba
Created June 18, 2018 05:10
Show Gist options
  • Save nyanshiba/bbe5494b97430b1cfccb3f1a9084954f to your computer and use it in GitHub Desktop.
Save nyanshiba/bbe5494b97430b1cfccb3f1a9084954f to your computer and use it in GitHub Desktop.
@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
)
)
setlocal disabledelayedexpansion
echo.
rem 複数ファイルD&Dでエンコ処理を呼ぶ
for %%a in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do (
if not %%a == "" (
call :encode %%a
)
)
set /p hoge=すべての処理終了 . . .
exit
:encode
rem ps1に渡す
set "FilePath=%~1"
set "FolderPath=%~dp1"
set "FileName=%~n1"
powershell -NoProfile -ExecutionPolicy RemoteSigned "C:\DTV\EDCB\PostRecEnd.ps1"
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment