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 contains the amount of files found.
The variable $b when used in a For loop returns this error:
Any help is really appreciated.
My script is below:
#Include <File.au3> $a = @ScriptDir $b = _FileListToArray($a, ".lnk", 1, True) $d = 1 For $c in $b If $d <> 1 Then FileDelete($c) Else $d = 0 EndIf Next MsgBox(0, '', "Cleaned " & $b & " links in " & $a) Exit 0
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 ?