Sign in to follow this  
Followers 0
mohammadezazi

How I can get a full filename when I have some chars from its name

5 posts in this topic

#1 ·  Posted (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 by mohammadezazi

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by DatMCEyeBall
1 person likes this

"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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0