Windows (platform)/Batch file media: Difference between revisions
From Zaparoo Wiki
Rewrote it to be more cohesive. |
small changes |
||
Line 4: | Line 4: | ||
==== Requirements: ==== | ==== Requirements: ==== | ||
# '''VLC Media Player''' installed. | # '''VLC Media Player for windows''' installed. | ||
# ''' | # '''TapTo for Windows''' installed. | ||
# '''Video files''' stored in your desired location. | # '''Video files''' stored in your desired location. | ||
# '''Tapto.life app''' installed on iOS or Android. | # '''Tapto.life app''' installed on iOS or Android. | ||
Line 19: | Line 19: | ||
==== Step 1: Create a .bat File ==== | ==== Step 1: Create a .bat File ==== | ||
# '''Open | # '''Open a text editor''' (like Notepad). | ||
# '''Locate VLC Media Player Executable''': | # '''Locate the VLC Media Player Executable''': | ||
#* The default path on x64 Windows systems is: <code>C:\Program Files (x86)\VideoLAN\VLC</code> | #* The default path on x64 Windows systems is: <code>C:\Program Files (x86)\VideoLAN\VLC</code> | ||
#* Copy this path to Notepad and add <code>vlc.exe</code> at the end, so it looks like this: <code>C:\Program Files (x86)\VideoLAN\VLC\vlc.exe</code> | #* Copy this path to Notepad and add <code>vlc.exe</code> at the end, so it looks like this: <code>C:\Program Files (x86)\VideoLAN\VLC\vlc.exe</code> | ||
Line 34: | Line 34: | ||
#* Ensure the file isn’t saved as <code>Movie.bat.txt</code>, as this won’t work. | #* Ensure the file isn’t saved as <code>Movie.bat.txt</code>, as this won’t work. | ||
==== Step 2: Configure | ==== Step 2: Configure TapTo to Launch the .bat File ==== | ||
# '''Open the | # '''Open the TapTo Configuration File''': | ||
#* Locate and open the <code>tapto.ini</code> file. | #* Locate and open the <code>tapto.ini</code> file. | ||
# '''Add the .bat File Path''': | # '''Add the .bat File Path''': |
Revision as of 16:09, 18 August 2024
Start videos with .bat files on TapTo Windows (Beta) with VLC Media Player
Requirements:
- VLC Media Player for windows installed.
- TapTo for Windows installed.
- Video files stored in your desired location.
- Tapto.life app installed on iOS or Android.
Notes:
- This tutorial is designed to launch a video using VLC Media Player. While other media players may work, they might require different commands.
- Every video file requires its own .bat file. To keep things organized, consider placing your .bat files and corresponding videos in the same folder.
- If you move your video files after creating the .bat files, the .bat files will no longer work. Keep this in mind before proceeding.
Tutorial:
Step 1: Create a .bat File
- Open a text editor (like Notepad).
- Locate the VLC Media Player Executable:
- The default path on x64 Windows systems is:
C:\Program Files (x86)\VideoLAN\VLC
- Copy this path to Notepad and add
vlc.exe
at the end, so it looks like this:C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
- The default path on x64 Windows systems is:
- Add Quotes to the Path:
- Place quotation marks (
"
) at the beginning and end of the path, then add a space afterward. It should look like this:"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
- Place quotation marks (
- Insert the Video File Path:
- Copy the location of your video file, including the file name and extension.
- Place quotation marks (
"
) around the video file path. Your .bat file should now look like this:"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv"
- Add Additional Commands:
- To start VLC in fullscreen mode and close it automatically after playback, modify the command like this:
start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv" --fullscreen
exit
- To start VLC in fullscreen mode and close it automatically after playback, modify the command like this:
- Save the File:
- Save the file in Notepad with a
.bat
extension. For example:Movie.bat
- Ensure the file isn’t saved as
Movie.bat.txt
, as this won’t work.
- Save the file in Notepad with a
Step 2: Configure TapTo to Launch the .bat File
- Open the TapTo Configuration File:
- Locate and open the
tapto.ini
file.
- Locate and open the
- Add the .bat File Path:
- Under the
[launchers]
section, add the following line:allow_file = G:\Tapto\Movies\Movie.bat
- Replace the path with the location of your actual .bat file.
- Under the
Step 3: Flash the Path to Your NFC Card
- Open the Tapto.life App.
- Flash the Path:
- Flash the path to your .bat file as a text string. For example:
G:\Tapto\Movies\Movie.bat
- Flash the path to your .bat file as a text string. For example:
Your NFC card is now configured to start your movie!