cyan256 Posted January 3, 2007 Share Posted January 3, 2007 Plese help!!! I'am trying to write a script that runs windows search. Shortcut key is Winkey+F, That runs search for all jpg images on HDD than after finish searching select all jpg images & send them to another drive other than C:. Any help will be appreciated. Thanks in advance Link to comment Share on other sites More sharing options...
Uten Posted January 3, 2007 Share Posted January 3, 2007 From the help file: ; Shows the filenames of all files in the current directory. $search = FileFindFirstFile("*.*") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop MsgBox(4096, "File:", $file) WEnd ; Close the search handle FileClose($search) Replace *.* with *.jpg. Search the forum for FileFindFirstFile and FileFindNextFile. When you have found what you want use FileCopy or FileMove. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
cyan256 Posted January 4, 2007 Author Share Posted January 4, 2007 Plese help!!!I'am trying to write a script that runs windows search. Shortcut key is Winkey+F, That runs search for all jpg images on HDD than after finish searching select all jpg images & send them to another drive other than C:. Any help will be appreciated. Thanks in advanceThank You Uten, Your help is really appreciated. Thank You for your time!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now