Jump to content

files from array


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...