考慮我有包含文件列表
input.txt中一個文件input.txt中
ExampleTestthreeBean.class
ExampleTestoneBean.class
如何使用批覆制特定文件的列表?
用於%%一個在/ F 「= *令牌」( input.txt中)做(
DIR/S/b d:\ COM \ example_4.1 \ %%一個>> Dirfilelisttemp.txt
)
種文件夾結構的
.. \ pgmtestone \ ExampleTestoneBean.class
.. \ pgmtestone \ ExampleTestoneBean $ 1Sort.class
.. \ pgmtestone \ ExampleTestoneBean $ 2.class
.. \ pgmtestone \ ExampleTestoneBean $ 3.class
.. \ pgmtesttwo \ ExampleTesttwoBean.class
.. \ pgmtesttwo \ ExampleTesttwoBean $ 1.class
.. \ pgmtesttwo \ ExampleTesttwoBean $ 2.class
.. \ pgmtesttwo \ ExampleTestthreeBean.class
.. \ pgmtesttwo \ ExampleTestthreeBean $ 1Math.class
.. \ pgmtesttwo \ ExampleTestthreeBean $ 2Scroll.class
.. \ pgmtesttwo \ ExampleTestthreeBean $ 2Scroll.class
注:所需的輸出:
.. \ pgmtestone \ ExampleTestoneBean.class
.. \ pgmtestone \ ExampleTestoneBean $ 1Sort.class
.. \ pgmtestone \ ExampleTestoneBean $ 2.class
.. \ pgmtestone \ ExampleTestoneBean $ 3.class
.. \ pgmtesttwo \ ExampleTestthreeBean.class
.. \ pgmtesttwo \ ExampleTestthreeBean $ 1Math.class
.. \ pgmtesttwo \ ExampleTestthreeBean $ 2Scroll.class
.. \ pgmtesttwo \ ExampleTestthreeBean $ 2Scroll.class
實際輸出:
Dirfilelisttemp.txt
.. \ pgmtesttwo \ ExampleTestthreeBean.class
.. \ pgmtestone \ ExampleTestoneBean.class
執行此操作後,我正在獲得「實際產出」。但我無法獲得所需的輸出。是否有任何解決方案獲得所需的輸出?
!我m到處找不到文件的錯誤 –
現在就來試試用引號加入到支持長文件/路徑名的元素。 – foxidrive
@foxidrive再次遇到文件未找到錯誤 –