I Need A Tool Similar To: RandomSelectionTool

Page 1 of 3 123 LastLast

  1. Posts : 3,013
    Windows 10 Pro for the Bro
       #1

    I Need A Tool Similar To: RandomSelectionTool


    Hello. So as of the modern Window 10, the "RandomSelectionTool" no longer works on my computer. It gives me an error:

    I Need A Tool Similar To: RandomSelectionTool-image.png

    I've already searched on the internet on ways to fix this error, yet nothing that is recommended actually works. That's the reason why I reached the conclusion that this app no longer works with the modern Windows 10.

    What this tool does:
    It is very simple, once that exe file is executed, it will randomly select (highlight) one item in the active File Explorer folder.


    Example:
    Suppose I have File Explorer open at "C:/",
    I Need A Tool Similar To: RandomSelectionTool-image.png
    When I open "RandomSelectionTool Command.exe", a random item in this folder will get selected (highlighted).

    I am requesting for a file that works exactly like this, or a command of some sort. Does anyone know anything like that please? And also, if you manage to figure out how to make the file work on the modern Windows 10, then that would be just as great!

    Thanks so much!
      My Computer


  2. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @pepanee,

    [1] Out of curiosity, why do you want to do this?
    [2] You could probably write a batch script to do this.
    pepanee said:
    What this tool does:
    It is very simple, once that exe file is executed, it will randomly select (highlight) one item in the active File Explorer folder.
    [3] So do you want it to highlight a random file, not actually open it. Is that correct?

    I hope this helps!
      My Computer


  3. Posts : 3,279
    Win10
       #3

    On Windows 10 Home (32 bit) it seems to work as it should ( I can't test on Win 10 Pro 64 at the moment ). Also, in case, you missed it, the readme.txt in the downloaded zip ( from RandomSelectionTool — ivanyu ) says
    " Also required: -Microsoft .NET Framework 4.0 ; Microsoft Visual C++ 2010 Redistributable Package "
    which might explain the error message you are getting.

    Also, if you are familiar with Autohotkey, there are scripts which can do what you want :
    Select a random file inside the current open folder? - AutoHotkey Community
    eg: see the posts by the Users "jeeswg" and "iPhilip" ( both their scripts work - although they use keyboard shortcuts instead of the right click context menu in explorer).

    Maybe as Paul suggests, a batch file might be more fitting if you can specify the end purpose.
      My Computers


  4. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #4

    Hello @pepanee,

    das10 said:
    Also, in case, you missed it, the readme.txt in the downloaded zip ( from RandomSelectionTool ivanyu ) says
    " Also required: -Microsoft .NET Framework 4.0 ; Microsoft Visual C++ 2010 Redistributable Package "
    which might explain the error message you are getting.

    To elaborate on the above.

    NET Framework

    To check the .NET Framework versions that you have installed, open an elevated PowerShell prompt and type the following cmd and press <Enter>.
    Code:
    ls 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | % { Get-ItemProperty -Path Registry::$($_.Name) } | Select Version -Unique

    You can also check by opening an elevated CMD prompt and type the following cmd and press <Enter>.
    Code:
    dir %windir%\Microsoft.Net\Framework\v* /b | findstr "v[1-9]"

    MS Visual C++ Redistributable

    To check the MS Visual C++ Redistributable versions that you have installed, open Add and Remove Programs and look for MS Visual C++ Redistributable.

    I hope this helps.
      My Computer


  5. Posts : 3,013
    Windows 10 Pro for the Bro
    Thread Starter
       #5

    From your first post Paul:
    1) I use this in conjunction with projects I do on the computer.
    2) I don't know how to write a batch script.
    3) And yes, just highlight a random file. I don't mind if it opens the file either.

    Das:
    I use Macro Express Professional. It's similar to the app you mentioned. Do you know of a command in Macro Express that could do that?

    And Paul:

    For the PowerShell command:
    2.0.50727.4927
    3.0.30729.4926
    3.0.4506.4926
    3.0.6920.4902
    3.5.30729.4926
    4.8.03752
    4.0.0.0

    For Command Prompt:
    v1.0.3705
    v1.1.4322
    v2.0.50727
    v3.0v3.5
    v4.0.30319
      My Computer


  6. Posts : 3,279
    Win10
       #6

    For the original "Random Selection Tool" have you made sure you have the "x86" version of the Microsoft Visual C++ 2010 Redistributable Package ?

    As far as Macro express is concerned, unfortunately, I have no experience of it, and after having a quick look at it, I couldn't figure out how to get it to accept the visible Explorer Window path as a parameter against which to run a Batch file (or an ahk script) either. The best I could manage was to be able to use a HotKey to start a batch file to run random files from a "fixed pre-defined" path only.

    Sample batch file based on one from a "Superuser" thread-the batch file which can run a random file from a pre-defined folder. It opens random files from C:\all\txt2\ on my PC- alter to suit your needs.

    batch code for "run" a random file from a pre-defined folder (best to try first on a test folder full of text files)
    Code:
    :: https://superuser.com/questions/872048/opening-random-file-from-folder-and-subfolders-with-batch-script-windows-7
    :: run a random file from from a "predefined foldername"
    
    @echo off
    setlocal enableextensions disabledelayedexpansion
    
    rem      Section 1- 
    rem      IF you can somehow pass the Visible Windows explorer folder path to MacroExpress 
    rem      then comment out the fixed path in section 2  then uncomment this next line
    rem      set "rootfolder=%~dp1"
    
    rem      Section 2-for a fixed path only
    rem      IF you only ever use one folder path, to select random files to run, then you can pre-define it here
    rem      ie instead of my own   C:\all\txt2\   use your own fixed path from where to select and run files
    rem                   
    set      "rootFolder=C:\all\txt2\" 
    
             for /f "usebackq tokens=1,* delims=:" %%a in (`
             cmd /q /v /e /c "for /f delims^= %%a in    ('dir /a-d /b "%rootFolder%"') do echo(!random!:%%a"
             ^| sort 2^>nul
             ^| cmd /q /e /v /c "set /p ".^=" & echo(!.!"
             `) do "%%~b"
    
    
    rem   to run random files from recursed folders also, change the command
    rem   ('dir /a-d /b "%rootFolder%"')  to
    rem   ('dir /a-d /s /b "%rootFolder%"')
    rem be careful about what might run !
      My Computers


  7. Posts : 1,728
    Windows 10 Pro x64 22H2
       #7

    Please follow steps below to share application event logs:

    1. Right click on Windows button and select "Windows PowerShell (Admin)"
    2. If prompted for password, enter administrator password and click "Yes" to continue

    3. Copy all of the code below at once, right click into console to paste and press enter
    Code:
    ni -ItemType Directory $env:SystemDrive\PSLogs\EventLog\ | Out-Null
    Get-WinEvent -LogName Setup | select Id, TimeCreated, LevelDisplayName, Message |
    fl > $env:SystemDrive\PSLogs\EventLog\setup.log
    Get-EventLog -LogName Application -EntryType Error, Warning |
    select EventID, TimeGenerated, Source, Message | sort TimeGenerated -Descending |
    fl > $env:SystemDrive\PSLogs\EventLog\application.log
    Compress-Archive -Force -Path $env:SystemDrive\PSLogs -DestinationPath $env:SystemDrive\PSLogs.zip
    7. This will create folder named "PSLogs" and zip file named "PSLogs.zip" in your C:\ root drive
    8. Attach "PSLogs" zip file to your new reply
    9. Feel free to delete "PSLogs" folder and zip file when done

    For more information about event log see:
    Windows Admin: Using Event Viewer to Troubleshoot Problems
      My Computer


  8. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #8

    Hello @pepanee,

    Copy the script below and save it as a .bat file [ Random_Filename.bat for example ] in the SAME directory [ folder ] that you want to select a random filename from. Run the file. It will output a random filename in the cmd prompt.

    Code:
    @echo off
    :: ##############################################################################
    :: # Title:      Select a random filename in the current directory [ folder ].  #
    :: # Created By: Paul Black at TenForums.com/members/paul-black.html            #
    :: # Created:    October 2020.                                                  #
    :: ##############################################################################
    title Select A Random Filename.
    mode con: cols=80 lines=5 & color 17
    setlocal EnableDelayedExpansion
    set n=0
    for %%f in (*.*) do (
      set /A n+=1
      set "file[!n!]=%%f"
    )
    set /A "RAND=(n*%Random%)/32768+1" & set /A "rand=(n*%Random%)/32768+1"
    echo. & echo "!file[%RAND%]!"
    echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & exit
    IMPORTANT: Please test this on a test directory [ folder ] FIRST!

    I hope this helps!
      My Computer


  9. Posts : 3,013
    Windows 10 Pro for the Bro
    Thread Starter
       #9

    das: That is very very very close to what I need! Can you please figure out a way to modify that batch script to open any random item (including folders)? That batch script is only set to open a random file within a folder.
    (Also, after installing the x86 version of C++ you mentioned didn't work; Same error). But that Batch script will be perfect if it can open any random item (not only a random file, but also a random folder)

    zebal: I looked through Event Viewer when I ran the RandomSelectionTool, and this is the only error listed in the event log. It's the same message as that message box:
    I Need A Tool Similar To: RandomSelectionTool-image.png

    Paul: Your script opens a window saying which file got randomly selected. I need the random selection highlighted in File Explorer. Look at das' Batch script that he got from that site. I need something just like that, but can also select a random folder (not just a random file).

    Thanks
      My Computer


  10. Posts : 1,728
    Windows 10 Pro x64 22H2
       #10

    I was hoping to see something useful in logs, the one you show in the screenshot if of no use.
    @Paul Black told you to check VC++ redist., have you installed redistributables required by program?

    Another suggestion from me is to uninstall program and install it into ProgramFiles(x86) if it's installed into ProgramFiles.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:26.
Find Us




Windows 10 Forums