Difference between revisions of "Batch Start"
Younggunnayg (talk | contribs) (How to use a Batch File to run LOVE) |
m (Minor cosmetic changes) |
||
Line 2: | Line 2: | ||
− | ''' | + | '''NOTE''' |
This will only work for Windows Users, sorry Mac and Linux! | This will only work for Windows Users, sorry Mac and Linux! | ||
Line 9: | Line 9: | ||
== The Batch File == | == The Batch File == | ||
− | Open up Notepad | + | Open up Notepad or any other text/code editor. |
− | Type in | + | Type in following code: |
+ | <source lang="bash"> | ||
+ | @ECHO OFF | ||
− | + | start " " "%PROGRAMFILES(x86)%\LOVE\love.exe" | |
− | + | </source> | |
− | + | or | |
− | + | <source lang="bash"> | |
− | + | @ECHO OFF | |
− | |||
− | |||
− | |||
− | |||
+ | start " " "Path\To\love.exe" | ||
+ | </source> | ||
Depending on where you have LOVE installed. | Depending on where you have LOVE installed. | ||
− | ''' | + | '''Be sure to save the file as a .bat or .cmd or it won't work''' |
− | |||
== Using the Batch File == | == Using the Batch File == |
Latest revision as of 17:19, 15 October 2022
You can use a Windows Batch File (A .bat/.cmd that uses Command Promt) to test a LOVE game without having to zip it up and change the file type to love.
NOTE
This will only work for Windows Users, sorry Mac and Linux!
The Batch File
Open up Notepad or any other text/code editor.
Type in following code:
@ECHO OFF
start " " "%PROGRAMFILES(x86)%\LOVE\love.exe"
or
@ECHO OFF
start " " "Path\To\love.exe"
Depending on where you have LOVE installed.
Be sure to save the file as a .bat or .cmd or it won't work
Using the Batch File
Place your new Batch File into the same directory as your "main.lua" and double click it to run it.
i.e "Desktop\LOVE\Game\Directory"
And BAM! No more zipping your files every time you make a change to your games code!