Search the Community
Showing results for tags '_filelisttoarray'.
-
Hello, i want to search several directories for files with the largest numbers behind them (Like "video123") . They dont have a datatype. But there are also files with longer names and datatypes in these folders (Like "video778.mp4"). Is it possible to filter the _FileListToArray Syntax from to smth. like Here is my Code #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <array.au3> #include <File.au3> $filedir = @ScriptDir & "\" _checkfile() Func _checkfile()
- 9 replies
-
- _filelisttoarray
- wildcard
-
(and 2 more)
Tagged with:
-
Hello there, So i need to clean up my directories a bit, so created a script that checks the amount of .lnk type files found and deletes each of them in a For loop. To do this task i'm using _FileListToArray function from File.au3 udf, the problem is that the variable assigned to this command dont seem to store any subscripts, i've been trying to figure out what i done wrong but i couldn't Variable $a stores local script directory Variable $b stores an array with the list of files found Variable $d is only for skipping the first subscript (0) that contain
-
Hey Everybody, as you know im on a very low autoit-level. My question is: How can i read all PDFs from a Folder wich is open and copy them to a Folder on a Desktop. The Folder wich contains the PDFs is variable Z:\Projektls\"*"*"*EVERYTIME ANOTHER ENDING"*"*"*"*" There can be 1 PDF or even 15 PDFs. i tried it with _FileListToArray and _FileCopy but i Need some help to understand this language THANKS!
- 3 replies
-
- _filelisttoarray
- _filecopy
-
(and 3 more)
Tagged with:
-
Hello, i have question. How put data from _FileListToArray to Combo ? I want fill combo with names of files from folder.
-
Hi I'am trying to list files from folder sorted by name (same as the picture) i tried this code #include <File.au3> $arr = _FileListToArray("D:\2") _ArrayDisplay($arr) i am getting this result Any one could explain why it is putting 10-1 before 8-1 ? how can i make Autoit view file same as windows explorer ?
- 20 replies
-
- sort
- _FileListToArray
-
(and 1 more)
Tagged with:
-
This is more tricky than I thought it would be. I have been searching for some time now and can't seem to find an answer. To find the IE history manually I go to "C:UsersuserAppDataLocalMicrosoftWindowsHistory" and from there I select the subfolder(Today, Yesterday etc...) and check the files in it. So following this logic I came up with this which should normally work but it doesn't. #include <File.au3> #include <Array.au3> Local $File = RegRead ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "History" ) ;ConsoleWrite($File & @LF) Lo
-
Hi everyone, I've got a bit of code that gets the file name of a zip file in a particular directory and tried to unzip it. _FileListToArray should create an array and define $aArray[1] as the first file returned by the search. But when I try to use $aArray[1] for anything, I get the error: "==> Array variable has incorrect number of subscripts or subscript dimension range exceeded." Any thoughts? If $osbit = "32" Then Local $aFileList = _FileListToArray($extract_dir, "*win32*") _ExtractZip($extract_dir & $aArray[1], $extract_dir) ElseIf $osbit = "64" Then Local $aFileList = _
- 6 replies
-
- _FileListToArray
- Array
-
(and 1 more)
Tagged with:
-
This is a rather simple question, I would like to exclude certain files when I use _FileListToArray Local $fileList = _FileListToArray(@scriptdir, "*.au3") ;List of all AutoIT files to execute The above code fetches all au3 files, but I would like to exclude 2 specific files. It would be a hassle to use ArraySearch and ArrayDelete, so is there a way I could directly specify the exclusion in the filter criteria itself? Something like Local $fileList = _FileListToArray(@scriptdir, "*.au3|^"Utilities.au3";^"Helper.au3"") ;exclude Utilities.au3 and Helper.au3 Thank You!
-
Hi guys, with help of M23 now i have this script: $Path = GUICtrlRead($FolderInput) $Pre = @TempDir & "\Test.exe" $Command = "-e -p" $Folders= _FileListToArray($Path, '*', 1) $Folders[0] = "@echo off" & @CRLF $fFlag = "" AdlibRegister("Update",333) For $i = 1 To UBound($Folders) - 1 If RunWait(@ComSpec & " /c " & $pre & " " & $command & " " & $Password & " " & '"' & $Path & "\" & $Folders[$i] & '"', @TempDir, @SW_HIDE) = 0 Then ConsoleWrite("Information - Success") Else $fFlag &= $i & "|" EndIf ConsoleWrite("Information
-
Maybe is a stupid question, but i can't find a solution Func Basic() $Folder = GUICtrlRead($FileInput) If Not FileExists($Folder) Then MsgBox(16, "Error", "No folder") EndIf If FileExists(GUICtrlRead($FileInputCrypt) & "*.txt") Then MsgBox(16, "Errore", "Find txt folder") EndIf $Password=GUICtrlRead($UserInput) If $Password="" Then MsgBox(16,"Errore","No user input") EndIf $Path = GUICtrlRead($FileInput) $Folders= _FileListToArray($Path, '*', 1) $Folders[0] = "@echo off" & @CRLF $Pre = "C:\Test.exe" $Command = "-e -p" For $i = 1 to UBound($Folders) -1 $Success = $Folders[$i]
-
Hi guys, I know that normally when should ask for help you need to post a code. But this time i don't know how to start. I search in the guide and in the forum but i can't find a good example for what i'm want to do. What i want to do: 1) Make a GUI for select a folder ( i know how to do ) 2) Copy the complete path of all file in that folder ( ? ) and write them on a ini file 3) Make every line on .ini a variable ( ? ) for a cmd command ( i know how to do ) _FileListToArray i think is the right command, but i can't find a good example for starting scripting Thanks for support, Jo
-
I know there's already several of these types of functions around the forum but there were some things I wanted to do different, so I wrote my own. In the tests I've done this appears to be working fine, but I'd appreciate a second look. The error returns and the first three parameters are the same as the vanilla _FileListToArray, but there are a couple new flags, and two new parameters. The new flags include: - enabling recursion (4) - disabling file count in element [0] (8) - enabling full path returns (16). The new parameters are: - $sCallback - this is the name of a function you want to ru
- 1 reply
-
- _FileListToArray
- Recursive
-
(and 2 more)
Tagged with: