windowscmd

Why does SQLite3 refuses to be in PATH after Command Prompt is closed?


I followed the instructions from this video: How to Install SQLite on Windows: A Visual Walkthrough. I have successfully been able to add SQLite3 to my PATH. The command

set PATH-%PATH%;C:\sqlite;

did not work. However, by using the command PATH, copying my current path, and typing PATH [my current path]C:\sqlite;, I was able to put SQLite3 to my PATH. Typing sqlite3 worked. Everything was perfectly fine until I closed the command prompt and opened it again. Then I typed sqlite3 and there was output:

'sqlite3' is not recognized as an internal or external command,
operable program or batch file.


Solution

  • (ANSWER) I found an answer (with the help of @catcat) Make sure you're an administrator. Go to control panel, then System. Hit Advanced Settings. Under user variables click Path, then click edit. Add sqlite3 as the he name and C:\sqlite as the value. Add it and hit done!

    Test it with sqlite3 in command prompt.