Consider a .m3u (video playlist) file. We can open this in several quite different applications, for example...
C:\Program Files\VLC\VLC.exe --> Read the file and play a series of video it specifies C:\Windows\system32\notepad.exe --> Edit the contents of the file, specifying a new list of videos
I know (in Windows) I can open the file in either app as follows (what I will call the...)
"Command File" syntax
C:\> "C:\Program Files\VLC\VLC.exe" Playlist.m3u --> opens Playlist.m3u in VLC C:\> "C:\Windows\system32\notepad.exe" Playlist.m3u --> opens Playlist.m3u in notepad
"File Command" syntax (?)
I wondered if it's possible to reverse this (calling the file first, then then application), e.g. ...
C:\> Playlist.m3u "C:\Windows\system32\notepad.exe" --> ❌ Opens Playlist.m3u in the default app (ignores everything after the filename) C:\> Playlist.m3u | "C:\Windows\system32\notepad.exe" --> ❌ Opens Playlist.m3u in the default app AND open notepad.exe (but not to edit Playlist.m3u, just opens app)
Is this syntax (or something similar) possible?
Thanks in advance!