Is there a way to specify a file version to a search?
Thanks.
Search by Fileversion.
-
admin
- Site Admin
- Posts: 66312
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
timhatz
- Posts: 41
- Joined: 12 Dec 2008 06:21
Re: Search by Fileversion.
Thank you for the reply... It would be benificial for me, to have version searching, and a 'column' to show file versions...
Thanks for your time.
Thanks for your time.
admin wrote:No, currently not.
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Search by Fileversion.
Is this the type of thing that could be available via Report/scripting? Similar to the new JPG fields?admin wrote:No, currently not.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
timhatz
- Posts: 41
- Joined: 12 Dec 2008 06:21
Re: Search by Fileversion.
I just bought the program a few days ago, so I'm not sure what type of options are available to me. And scripting is still new for me.
As for a report, it would be easier, if there was a way to pop-up a window, like notepad that shows the results of the report. Instead having to launch notepad, and then paste it. Is there a way to do this?
As for a report, it would be easier, if there was a way to pop-up a window, like notepad that shows the results of the report. Instead having to launch notepad, and then paste it. Is there a way to do this?
j_c_hallgren wrote:Is this the type of thing that could be available via Report/scripting? Similar to the new JPG fields?admin wrote:No, currently not.
-
admin
- Site Admin
- Posts: 66312
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search by Fileversion.
Yes, it's related. I would add the query to the Name field in Find Files, e.g.j_c_hallgren wrote:Is this the type of thing that could be available via Report/scripting? Similar to the new JPG fields?admin wrote:No, currently not.
Code: Select all
Name: version:3.5*FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Search by Fileversion.
@Timhatz: This is not a straight forward script but does the job pretty well. It will search the current folder and filter the files with the fileversion you are looking for:
Code: Select all
//Input file version
input $userinput, "Enter the fileversion you are looking for?", "7.90.0418";
//Remove any clipboard items
copytext;
//Show all items in branch
#263;
//Remove old filters
filter;
sortby path, a;
sel 1;
//Determine fileversion of current file
$fileversion = <curver>;
//Count total items in list
$items= getinfo (CountItems);
$count=1;
$matchcount=0;
$found=0;
// Loop checks if end of list has reached
WHILE ($count < $items) {
//Loop checks for fileversion match
WHILE ($userinput == $fileversion) {
//copy matched name to clipboard
copytext "<curname>|", a;
//select next item
sel +1;
$fileversion = <curver>;
//Increment number
incr $matchcount;
incr $count;
}
sel +1;
$fileversion = <curver>;
incr $count;
}
//Copy clipboard to variable
$found= <clipboard>;
//Check if any files found
IF ($found == "") {
status "No files found",,alert;
}
ELSE {
filter $found;
status "$matchcount file(s) with fileversion "$userinput" found";
}
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Search by Fileversion.
Serendipity: Saw your script and for someone who's not much into scripting, you've seemed to make your code nice and readable with the layout and comments so just wanted to say thanks, ok? 
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Search by Fileversion.
I am glad you like it, I just get curious when someone asks if this or that can be done. For me its just a way to learn to program and what better way than XY scripting?j_c_hallgren wrote:Serendipity: Saw your script and for someone who's not much into scripting, you've seemed to make your code nice and readable with the layout and comments so just wanted to say thanks, ok?
XYplorer Beta Club