View Full Version : File enumeration question
cnkinsd
01-13-2015, 11:59 AM
All,
I am trying to enumerate all files on an HDD with a specific extension, say .bat
I have not been able to do this in SB8. I have tried the Search for file, however you cannot use wildcards.
Does anyone know how to do this in SB8? A simple search and display all files with that extension would be great help...
Thank you in advance for your help.
linder
01-14-2015, 03:36 AM
Kel,
Maybe you can use the "Handle File Listing..." script function? What do you think?
Friedrich
cnkinsd
01-14-2015, 08:54 AM
That would be great. Except we are using 8.1 and that function does not look like that in the version we are using, where can I download 8.5? I am looking for it.
cnkinsd
01-14-2015, 09:15 AM
Friedrich,
Thanks, finally got 8.5 downloaded and installed and have tried your suggestion of Handle File Listing. I have tried all of the options in the function and the only one that allows defining "C:\*.MAC" is the Load File List operation, and what it returns is an INT in this case "2" which is the correct number of files with the .MAC file extension. However I need the Location of the files listed, not the number of files, much like the "Search For File" function provides.
I know that SB8 can do this, I just know it. Any other suggestions from you and your team?
Kel
linder
01-14-2015, 10:51 AM
Kel,
Okay, if it returns "2" (Handle File Listing -> Load File List) then it found two .MAC items. Next step is to use "Handle File Listing -> Get File List Item" and/or "Handle File Listing -> Get Next List Item" to retrieve the location(s). Similar to the Example (please see attached screenshot).
Does this work?
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.