1 post in this topic
I'm looking to create a script which will download all *.txt files from a remote FTP server.
Once downloaded, delete all *.txt files.
Can this be achieved using AutoIt ?
How to create Wildcards to search for a Filename and also for a String within a File and within the own script.
In a folder with some files that have no extension (for example the hosts file in C:\Windows\System32\driversetc), FileListToArrayRec does not return the same thing than _FileListToArray if I use *.* as filter :
_FileListToArray("C:\Windows\System32\driversetc", "*") : returns all files
_FileListToArray("C:\Windows\System32\driversetc", "*.*") : returns all files
_FileListToArrayRec("C:\Windows\System32\driversetc", "*") : returns all files
_FileListToArrayRec("C:\Windows\System32\driversetc", "*.*") : returns only files with extensions
It seems logic that FileListToArrayRec and FileListToArray should have the same behaviour with the same filter, no ?
It's not important at all for me, but maybe developers will want to ensure that these two functions react in the same way...
Edit : sorry if this post is not in the good section. Please move it if needed.
So im making a script that organizes TV shows. i have figured most of it out but im trying to find the portion of the title that contains the Season number and Episode number. (ie S01E13)
is there and easy way to search for the "S" and "E" in a string with any 2 random numbers in between them and after the "E"?
here is what i tried just as a very wild guess:
Func FindSeasonEpisode($FileName) $result = StringInStr($FileName, "S**E**") ConsoleWrite($result & @CRLF) EndFunc
Here is a small section of my script. What I am trying to accomplish is that I am finding these files by using wildcards in fileexists(). Is there any possible way to get the filename based off of wildcards if only one file matches the criteria? Something like filegetname("1*.bkf") that returns the full file name.
I would like this script to be able to stringtrimleft($string,1) the filename, so that I can change the first portion of file name.
File name example:
"0 01-31-13 16.01.20 full System Backup.bkf"
would change to:
"1 01-31-13 16.01.20 full System Backup.bkf"
For $z = 5 to "0" Step -1 If FileExists($backupdest & $z & "*.bkf") Then FileMove($backupdest & $z & "*.bkf",$backupdest & ($z+1) & "*.bkf",0) EndIf
Any help would be appreciated. Thanks.