You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use **`.VBS`** script to start and stop, create two scripts respectively start.vbs and stop.vbs
139
-
140
-
Just double-click to start it in the folder at the same level as the Alist startup program, don't worry about no response, just go to the browser to access it
141
-
142
-
::: info Two startup scripts
143
-
144
-
**start.vbs**
145
-
146
-
```vbscript
147
-
Dimws
148
-
Setws=Wscript.CreateObject("Wscript.Shell")
149
-
ws.run"alist.exe server",vbhide
150
-
Wscript.quit
151
-
```
152
-
153
-
**stop.vbs**
154
-
155
-
```vbscript
156
-
Dimws
157
-
Setws=Wscript.CreateObject("Wscript.Shell")
158
-
ws.run"taskkill /f /im alist.exe",0
159
-
Wscript.quit
160
-
```
161
-
162
-
1. If the script will not be created, you can download it yourself: [**Script Download**](https://www.aliyundrive.com/s/DHPMhRtKUzY/folder/63e0961eae317bd4d4d945cda69dbb00f9837fb7)
163
-
164
-
2. If the script will not be used, you can watch the video: [**reference video**](https://www.bilibili.com/video/BV1DG411s7j5?t=266.2)
165
-
166
-
:::
167
-
168
-
How to realize Windows startup automatically, you can refer to the script mentioned above to use the video (second).
136
+
1. Download the newest `nssm` from https://nssm.cc/download.
137
+
2. Unzip the archive and go to the diretory of `nssm.exe`.
138
+
3. Hold Shift and right click on the blank space, then release and press S or select "powershell here", you should now see a blue window named "Windows PowerShell".
139
+
4. Type `.\nssm.exe install alist`.
140
+
5. Select the path of `alist.exe` for "Path", e.g. `D:\alist\alist.exe`; type `server` for "Argument".
141
+
6. You can custom "Display Name", "Description" and "Startup Type" in "Details" tab.
142
+
7. Go to "I/O" tab and select a file for both "Output (stdout)" and "Output (stderr)", e.g. `D:\alist\stdout.log`. The file itself (`stdout.log`) may not exist, but the folder (`D:\alist`) must exist.
143
+
8. Click on "Install Service".
144
+
145
+
You can now start the service from services.msc or task manager.
0 commit comments