Created
July 10, 2020 22:07
-
-
Save hig3r/4605a2b99ca470ae1ebddba6e9c10c64 to your computer and use it in GitHub Desktop.
manaba の複数オンライン入力レポート課題提出物を学生別に連結
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
mkdir all | |
for /d %%d in (report*) do ( | |
for %%f in (%%d\*.txt) do ( | |
echo. >> all\%%~nxf | |
echo ---- %%d >> all\%%~nxf | |
type %%f >> all\%%~nxf | |
) | |
) | |
% 「提出物を1つのフォルダにまとめる 」にチェックを入れ, オンライン入力レポート課題ごとに zip をダウンロードする. | |
% 空のフォルダ(例) assignments を作り, その中にすべての zip を「すべて展開」する. (例) report-933913-1007977 など複数のサブフォルダができ, その中に .txt などの学生別ファイルがはいっている状態になる. | |
% コマンドプロンプト起動. cd assignments した後, concatenate.bat を実行. | |
% assignments のサブフォルダ allの中の, ファイル名=学籍番号のファイルに, すべての提出物が連結される. 未提出の課題は(タイトルも)含まれない |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment