I have a file:
myfile.txt
And a batchfile
mybat.bat
And I want to open myfile.txt
with mybat.bat
.
In mybat.bat, I would have something like this:
start "filepath"
But, how do I get the file path of myfile.txt
(The file I opened with the batch file)?
Edit:
What I mean in this question is that when you have .exe files, for example notepad.exe
, You open files with that program. What I would like to do is open a file with my batch file, and in the batch file have some code that does something with the file opened with it. So, to do something with the file opened with the batch file, I neeed the file path of the file opened with my batch file.