|OK sorry it took so long to test, I was out on vacation all last week and getting caught up on work. I tried putting in the pause and also added the needed filename to search for. When the batch file is ran from a parent directory of the location where the file called ApplixSearch.exe is located at it will find the 2 files. Here are those results:|
11/03/2010 02:58 PM C:\Documents and Settings\username\Local Settings\Apps\2.0\7QXWRE45.536\G4293EMJ.PVY\appl..tion_eae9381bf051c1de_0003.0000_63563df2b1954709\ApplixSearch.exe
11/08/2010 12:58 PM C:\Documents and Settings\username\Local Settings\Apps\2.0\7QXWRE45.536\G4293EMJ.PVY\appl..tion_eae9381bf051c1de_0003.0000_64545d69ad1db949\ApplixSearch.exe
Press any key to continue . . .
So two things need to occur now. The batch file needs to be able to search in a specific directory and its subdirectories. I need the batch file to be located in "C:\Documents and Settings\username\RunMe\ApplixSearch" and then find the newest "ApplixSearch.exe" in the above directories, which are not under the RunMe directory.
Next I need the batch file to launch the "ApplixSearch.exe" program.
Here is my current batch file:
@echo off > newfile.txt & setLocal enableDELAYedeXpansion
for /f "tokens=* delims= " %%a in ('dir/b/s/a-d/od ApplixSearch.exe') do (
Thanks for the help.