13 posts in this topic
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
Hello, i have question. How put data from _FileListToArray to Combo ?
I want fill combo with names of files from folder.
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) Local $hSearch = _FileListToArray($File, Default, Default, True) _ArrayDisplay($hSearch) It returns some other files besides the Today, Yesterday folders.
I assume this happens because they are not actually folders however since FileListToArray second parameter is set to default, which means all files if I understand correctly, then it should also return the paths of theToday folder.
Anyone any ideas on this?
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 ?
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 as the first file returned by the search. But when I try to use $aArray for anything, I get the error: "==> Array variable has incorrect number of subscripts or subscript dimension range exceeded."
If $osbit = "32" Then Local $aFileList = _FileListToArray($extract_dir, "*win32*") _ExtractZip($extract_dir & $aArray, $extract_dir) ElseIf $osbit = "64" Then Local $aFileList = _FileListToArray($extract_dir, "*amd*") _ExtractZip($extract_dir & $aArray, $extract_dir) EndIf Thanks.