Jump to content
Sign in to follow this  
Digisoul

files from array

Recommended Posts

Digisoul

Hello, I m trying to make a program which get all the files from external txt file. and store them in array, and find them in whole Drive. i tried filefind function but it not give files from sub dirs. i tried to search in the forum but its not match my current problem.

here is da code which im using for store files names in array.

$file=FileOpen(@DesktopDir&"\data.dat",0)
$fd = FileRead($file)
$array = StringSplit($fd, "|")

Here i want the script to find files(from array) in Drive D:
1 thing more i want the path of result files.

plz help....

Edited by Digisoul

73 108 111 118 101 65 117 116 111 105 116

Share this post


Link to post
Share on other sites
Digisoul

Use .ini they work great.

IniRead()
IniWrite()
I m Asking for Finding the Files which are returned by Array! Edited by Digisoul

73 108 111 118 101 65 117 116 111 105 116

Share this post


Link to post
Share on other sites
Andreik

_FileReadToArray


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Digisoul

How Can i use _FileListToArray for getting files from Sub dirs ? with full path of every file?

plz help me guyz.


73 108 111 118 101 65 117 116 111 105 116

Share this post


Link to post
Share on other sites
weaponx

How Can i use _FileListToArray for getting files from Sub dirs ? with full path of every file?

plz help me guyz.

Search for FileListToArray in Example Scripts. You need a recursive function to search subfolders. There is no official function.

Share this post


Link to post
Share on other sites
Digisoul

Search for FileListToArray in Example Scripts. You need a recursive function to search subfolders. There is no official function.

Will you please send me any Sample Code for FileListToArray! i checked the examples but i m still unable to solve my problem. :P

Edited by Digisoul

73 108 111 118 101 65 117 116 111 105 116

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  

×