找到问题了,加个双引号解决问题了。^_^
非常感谢你了。
@echo off
(chcp 437
for /F "tokens=2,3 delims=|" %%i in (123.txt) do copy 1.exe "%%j_%%i.exe")>nul
以下为vbs
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("123.txt", 1)
Do Until f.AtEndOfStream
oneLine = f.ReadLine()
temp = Split(oneLine, "|")
If UBound(temp) > 1 Then
fso.CopyFile "1.exe", temp(2) & "_" & temp(1) & ".exe"
End If
Loop
==============================完结===========================================
Last edited by liu3157551 on 2010-4-15 at 21:10 ]