Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logfile line all save?
#1
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 ?


Code:
Copy      Help
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"
#2
Sorry, I cannot understand.
#3
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
Big Grin


Attached Files Image(s)
   
#4
If you want to save all images to output just try this:

Macro Macro2
Code:
Copy      Help
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"


Forum Jump:


Users browsing this thread: 1 Guest(s)