-
Anyone know how to do this? I've tried adding cmd /c and /k to the target of the shortcut, but I think both just close the prompt automatically. As someone that doesn't use desktop icons this is the most practical way to launch the web UI. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I have a shortcut on my desktop which links to a .bat file with this line: It will open 2 Windows Terminal tabs starting in the webui root directory. In the 2nd tab it will run webui-user.bat. wt is Windows Terminal. You may have to get it from Microsoft first |
Beta Was this translation helpful? Give feedback.
-
There's probably a better way to do it, but I just made a simple exe file with visual studio, and pinned that to the taskbar. C# code: replace the paths with whatever you have on your PC. |
Beta Was this translation helpful? Give feedback.
-
A friend recommended this and it works. Just remember to keep the converted exe in the A1111 folder and make a shortcut of it and put that on the Taskbar. |
Beta Was this translation helpful? Give feedback.
-
When creating shortcut, the properties that need editing are: Set your target to execute cmd prompt: target Without specifying a start in location, it's executing the command in the folder Windows\System32, doesn't find the file, and closes No need for cluttering your computer with extra software. |
Beta Was this translation helpful? Give feedback.
When creating shortcut, the properties that need editing are:
target
of the shortcut is the command to executestart in
is the folder to execute the command inSet your target to execute cmd prompt:
C:\Windows\System32\cmd.exe
; then add a flag;/k
will keep the window open after exiting,/c
will close the window after exiting. Then the script to execute;webui-user.bat
. Finally, specify the folder where the target of the shortcut should begin.target
C:\Windows\System32\cmd.exe /c webui-user.bat
start in
paste in the full path to the folder where webui-user.bat is
example start in:
D:\stable-diffusion-webui
Without specifying a start in location, it's executing the command in the folder W…