Created
June 18, 2018 05:10
-
-
Save nyanshiba/bbe5494b97430b1cfccb3f1a9084954f to your computer and use it in GitHub Desktop.
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 | |
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