Jump to content

Recommended Posts

Posted (edited)

I have a script like this:

$search = FileFindFirstFile("*.txt")
If $search <> - 1 Then
   While
      $file = FileFindNextFile($search)
      If @error Then ExitLoop
      RunWait(@ComSpec & " /c start " & $file, @ScriptDir, @SW_HIDE)
   Wend
EndIf
FileClose($search)

... how can I sort by date files opening?

Edited by masvil
Posted

You can use FileGetTime and a quicksort or bubble sort algorithm (look for quicksort or bubble sort on the forum) or you can use comspec and use dir with the right options to sort them.

Who else would I be?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...