R
R
rama_jecboom2021-10-16 15:50:25
cmd/bat
rama_jecboom, 2021-10-16 15:50:25

How to open a file in a program in bat?

Look, you need to open the video file in the program, like when you drag the file onto the program, only in bat, how to do it?616aca822c1b5504333223.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Brendan Castaneda, 2021-10-16
@ae_ph

But in the bat file it will come to prescribe the path to the video files and this will never be convenient.
Here is a small example

@echo off
set file=file.rrt
set program=notepad.exe
start "" "%program%" "%file%"

To assign a format to a file, use assoc .

D
Drno, 2021-10-16
@Drno

usually in the program there is an option to launch from the console ...
something like - /path to the program.exe/ -file.mp4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question