0
코드를 찾으십시오.한 알파벳으로 새 파일 저장하기
폴더에 큰 번호가 있습니다. "DE_For_Pol_Print_APPA_7A_Copy_%"
다음 FSO를 사용하지만이 같은 SELECT 문에서 파일 이름을 넣어 어디 WMI를 사용하지 않는 파일
===================================================================================== Dim fso, objFolder, obFileList, folderpath,counter folderpath = "G:\Everyone\Model Office Testing Documents\HP QC\QTP\PSISAutomation\Logs" Set fso = CreateObject("Scripting.FileSystemObject") Set objFolder = fso.GetFolder(folderpath) Set objFileList = objFolder.Files For Each File In objFileList msgbox("5") If InStr(1,File.Name,"DE_For_Pol_Print_APPA_7A_Copy_") = 1 Then counter=counter+1 End If Next counter=counter+1 msgbox("new file will be saved as: " &"DE_For_Pol_Print_APPA_7A_Copy_"& Chr(64 + Counter))
왜 그게 문제입니까 (많은 수의 파일)? – forsvarir
폴더가 네트워크 위치에 있으며 큰 번호를 가지고 있습니다. 파일 ...... ...... 루프가 많은 시간을 필요로합니다 objFileList의 각 파일에 대해 msgbox ("5") InStr (1, File.Name, "DE_For_Pol_Print_APPA_7A_Copy_") = 1 Then counter = counter + 1 End If 다음 – Guri
무엇이 여기에 묻히고 있습니까? – Cheeso