Posts: 151
Threads: 90
Joined: Aug 2014
Do not speak English well.
Thank you for your understanding.
Current save in the logfile text
Filelist get for example :
1.jpg
2.jpg
3.exe
->output in test.text -save -> last 3.exe text
How get all save filelists ?
Dir F
lpstr FilePath = "$Desktop$\number\*" ;;Folder 123.jpg;122.jpg
foreach(F FilePath FE_Dir 2|4)
str path1=F.FullPath
str name=F.FileName
name.replacerx("([^\d-])")
name.replacerx("-\d+")
out name
LogFile name 0 "C:\Users\Administrator\Desktop\test.txt"
Posts: 12,147
Threads: 143
Joined: Dec 2002
Sorry, I cannot understand.
Posts: 151
Threads: 90
Joined: Aug 2014
out name
17482121
17482121
17482121
17482121
17847665
17857149
17857399
17858006
20758195
20772933
20772933
20772933
20772933
20772933
20772933
20772933
20772933
20772933
20772933
20773018
20773018
20773018
20773018
20773018
20773018
20773018
20773018
20773018
20773018
20773018
20773018
The last saved "20773018" only numbers
I want to save all the numbers text.txt
Posts: 133
Threads: 15
Joined: Jun 2014
If you want to save all images to output just try this:
Macro
Macro2
Dir F
lpstr FilePath = "$Desktop$\number\*" ;;Folder 123.jpg;122.jpg
foreach(F FilePath FE_Dir 2|4)
,str path1=F.FullPath
,str name=F.FileName
,name.replacerx("([^\d-])")
,name.replacerx("-\d+")
,out name
,LogFile name 0 "C:\Users\Administrator\Desktop\test.txt"