The question you should be asking yourself is: "Where in my code is the data source associated with the page control(s)". Find that, and work back from there.
http://msdn.microsoft.com/en-us/library/dtkwfdky.aspx
Follow directions for creating the identity.aspx file to see what identity asp.net is running under.
You could probably do this with some VBA. I don't know about its ability to respond to events like pasting in a sheet, but you can definitely write code that works with the sheet collection.
Ok a couple of things:
first, .getElementsByName() returns an array, so referring to the array's reference doesn't get you what you want.
Second, I don't think that function can be applied to search children, and you don't really need it to, since it looks through the whole document...
NextPage=.{1,}"
will capture it, but you'll have to trim the ending quote, and the "NextPage" text. I think it's possible to make the quote not capture, but I don't remember how :confused:
Or like ptnl said you could do something like...
Where are you storing the user's search(database? cookie? wax blocks? :P)?
How would you use a stored search to rebuild the screen state?
How are you pulling search preferences from the screen to build the query?
Disclaimer: I'm not a batch expert.
But you might try replacing your *.jpg with something like
'dir *.jpg /b /od /s'
which should give you a big list of files to for-in.
I've done similar things with SQL-Server and SSIS. Import the two data sets into tables, export your desired results via a join back out to the original file format.