Jump to content
Sign in to follow this  
mohammadezazi

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

Recommended Posts

mohammadezazi

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
martin

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
DatMCEyeBall

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
  • Like 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

Share this post


Link to post
Share on other sites
somdcomputerguy

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.