mohammadezazi Posted July 30, 2013 Posted July 30, 2013 (edited) For example: I know that a file name starts with 20130713152034 chars in its begining and i also know its folder path (for example has been located in: f:folder1folder2) I need the full name of this file. Edited July 30, 2013 by mohammadezazi
jaberwacky Posted July 30, 2013 Posted July 30, 2013 Compare the two file names char by char. If they both begin the same then you can assume that you found what you were looking for. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
martin Posted July 30, 2013 Posted July 30, 2013 For example: I know that a file name starts with 20130713152034 chars in its begining and i also know its folder path (for example has been located in: f:folder1folder2) I need the full name of this file. I think you need to use FileFindFirst FileFindNext. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
DatMCEyeBall Posted July 30, 2013 Posted July 30, 2013 (edited) Use Melbas' >RecFileListToArray UDF if you're not sure where the file is. Something like: $aArray = _RecFileListToArray("f:\folder1\folder2\", "StartingOfTheFileName*", 1, 1, 1, 2) Edited July 30, 2013 by DatMCEyeBall DW1 1 "Just be fred, all we gotta do, just be fred." -Vocaliod "That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha @tabhooked Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation
somdcomputerguy Posted July 30, 2013 Posted July 30, 2013 The _PathSplit UDF (found in the helpfile) may help also. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now