Jump to content

Finding File Problem


Recommended Posts

2 every1, i have a small script to search and show out the files inside a specific dir, here is the code

[1.]As the result for these codes, i have a "desktop.ini" and "Content.IE5" inside the $tempdir

#include <Array.au3>
#include <File.au3>

$tempdir = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Cache")
$FileList = _FileListToArray($tempdir , '*.*')

_ArrayDisplay($FileList, "File List")oÝ÷ Û`'v«z+-ërݱȩ·br!£ ¶«{l¢yrªê-Mé©¢¶«Èíz¹Þ´X¥zÊ®¢×è׫{a{Múµé©v*ÚºÚ"µÍÌÍÝ[HYÔXY
    ][ÝÒÑVWÐÕTSÕTÑTÌLÔÛÙØIÌLÓZXÜÜÛÙ   ÌLÕÚ[ÝÜÉÌLÐÝ[Ú[ÛÌLÑ^ÜÌLÔÚ[ÛÉ][ÝË   ][ÝÐØXÚI][ÝÊBÙÐÞ
    ][ÝÉ][ÝË    ][ÝÕ[È   ][ÝÈ  [È ÌÍÝ[NÑÌLÑ[H[H[]   ÌLÕ[ÜH[][ÂÌÍÝ[ZÚY[OQ[Q[Ý[J ÌÍÝ[ [È ][ÝÊ][ÝÊBY  ÌÍÝ[ZÚY[HHLH[ÙÐÞ
    ][ÝÓÚH][ÝË ][ÝÒÚÛÈ[H^H[HÚH[[H]XÈ[ÜH][ÝÊB^][YÚ[HB    ÌÍÙ[HH[Q[^[J ÌÍÝ[ZÚY[JHYÜ[^]ÛÜÙÐÞ
    ][ÝÉ][ÝË    ][ÝÕÙHÝ[    ][ÝÈ  [È ÌÍÙ[JBÑ[[PÛÜÙJ   ÌÍÝ[ZÚY[J

Please tell me what make this difference ?

Thanks

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

Add the trailing backslash:

$timkiem=FileFindFirstFile($tempdir & "\*.*")
It wasn't requied with _FileListToArray() because the pattern was a separate parameter.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Thanks

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

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...