爲什麼我的簡單的批處理文件運行在永遠打印出只有線的.BAT文件內超過批處理文件運行永遠
我fc.bat文件內容
FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
我的臺式機DIR/
fc.bat
file1.txt
file2.txt!
Here is a image of my cmd prompt after double clicking fc.bat
輸出是
...
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
C:\Users\a\Desktop>FC "%USERPROFILE%\Desktop\file1.txt" "%USERPROFILE%\Desktop\file2.txt"
...
將fc更改爲批處理文件中的fc.exe或重命名您的批處理文件或完全限定fc的路徑fc – UnhandledExcepSean