Skip to content

Enhancement: Simple batch file to run scanner #2

@TheEliteGeek

Description

@TheEliteGeek

For those who want a quicker way to use this instead of manually launching cmd and whatever each time, you can use a simple batch file.

Create a new text file (name it PickleScan or whatever, paste the following, save it, and change it to a .bat file.

Note: You MUST change the venv python path to YOUR venv python path.

@echo off

echo "Scanning...Please wait a moment..."

"F:\Whatever\Path\stable-diffusion-webui\venv\Scripts\Python.exe"  pickle_scan.py models > scan_output.txt

type scan_output.txt

pause

Running the .bat will launch the scanner and display the results in the cmd window. It'll still save the output to "scan_output.txt"

Someone might be able to make this a bit more fancy and have picklescan be what you run first, have it check for new models (comparing it to the previous scan output), scan those, and if all good, launch webui-user.bat.

I could probably do this but I'm too lazy right now...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions