1
私はこれらのコードのそれぞれが何を参照するかを理解しようとしています。誰かが私にこれを読む良い場所を指摘することができますか?私は、そのWindows PowerShellのコードを仮定している..しかし、私はちょうど推測です。Windowsバッチコードの参照
は、例えば何 - %%ここ
@echo off
rem For each file in your folder
for %%a in (".\*") do (
rem check if the file has an extension and if it is not our script
if "%%~xa" NEQ "" if "%%~dpxa" NEQ "%~dpx0" (
rem check if extension forlder exists, if not it is created
if not exist "%%~xa" mkdir "%%~xa"
rem Copy (or change to move) the file to directory
copy "%%a" "%%~dpa%%~xa\"
)
)
http://ss64.com/nt/syntax-args.htmlまたは「for /?」と入力することができます –
ここに私の答えを見てくださいhttp://stackoverflow.com/questions/40371443/what-do-all- CMDカンニングシートのコマンドイン・バッチ・アンド・ドゥー(command-in-batch-mean-and-do)あなたの質問にパワーシェルはありません。 –
両方とも大変ありがとうございます – Jay