2016-12-01 52 views
1

我想了解/瞭解每個這些代碼引用是否相等。有人可以指出我是一個閱讀這篇文章的好地方嗎?我假設它的Windows PowerShell代碼..但我只是猜測。Windows批處理代碼引用

例如什麼呢 - %%一個represet

@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\" 
    ) 
) 
+1

http://ss64.com/nt/syntax-args.html或者你可以鍵入'for /?' –

+0

在這裏看到我的答案http://stackoverflow.com/questions/40371443/what-do-all- CMD備忘單中的命令批處理中的意思。在你的問題中沒有powershell。 – 2016-12-01 17:20:02

+0

非常感謝你 – Jay

回答

0

這裏%%一個提供每個文件名For循環迭代和%〜XA給人的文件擴展名。這就是我現在所知道的。任何細節都會很棒。