Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/09/2017 in all areas

  1. Bowmore

    Sort order: folders on top

    Hi sorry about that I've edited my script to add the extra parameters required to exclude the first row of the arrays which contains the number of Folders/Files found. _ArraySort($aFolderList,0,1,0) _ArraySort($aFileList,0,1,0)
    1 point
  2. Jos

    Set version?

    Yes... see my Signature. Jos
    1 point
  3. Jos

    Set version?

    Did you install the separate SciTE4autoIt3 installer containing autoit3wrapper? If yes then please post the SciTE output pane information generated when you compile the script, so I can check what is happening. Jos
    1 point
  4. Bowmore

    Sort order: folders on top

    If you want folders and files ordered with folders first The you need to list them separately then append the 3 lists #include <FileConstants.au3> #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> #include <Array.au3> Opt("ExpandEnvStrings", 1) #include <File.au3> Global $aFolderList = _FileListToArray(@WorkingDir, "*",$FLTA_FOLDERS) Global $aFileList = _FileListToArray(@WorkingDir, "*",$FLTA_FILES) _ArraySort($aFolderList) _ArraySort($aFileList) For $i = 1 To UBound($aFolderList) - 1 Local $sFilePath = $aFolderList[$i] If Not FileWrite("elenco.txt", $sFilePath & @CRLF) Then MsgBox($MB_SYSTEMMODAL, "", "An error occurred whilst writing the temporary file.") EndIf Next For $i = 1 To UBound($aFileList) - 1 Local $sFilePath = $aFileList[$i] If Not FileWrite("elenco.txt", $sFilePath & @CRLF) Then MsgBox($MB_SYSTEMMODAL, "", "An error occurred whilst writing the temporary file.") EndIf Next
    1 point
×
×
  • Create New...