Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extract files from a folder?
#2
this is what your after
you should used mkdir to make sure the new folder is created first incase it is not already.
the for loop just needs to start at 0 and increase by 3 each time. 
since your just straight moving files there is no need to rename the files.
see code below
Code:
Copy      Help
str dest="$Desktop$\I2\" ;;; this is the destination folder name
if(!FileExists("$desktop$\I2" 1)) ;; if folder doesnt exist
,mkdir dest 
int i
ARRAY(str) a
GetFilesInFolder a "$Desktop$\I1\" ""
a.sort(8)
for i 0 a.len 3
,ren a[i] dest


Messages In This Thread
How to extract files from a folder? - by Emerson - 07-31-2019, 01:08 AM
RE: How to extract files from a folder? - by Kevin - 07-31-2019, 02:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)