07-23-2023, 11:07 AM
How do I open a file for `edit` from the command line under Windows?
Mainly I am looking to open the file in the default editor associated for it (not to be confused with default action for this filetype).
This is different than just "executing" the file, so `start filename` is not a solution.
Note: this would require to use ShellExecute in one way or another.
Update: I added `Python` as an alternative to `batch`.
Mainly I am looking to open the file in the default editor associated for it (not to be confused with default action for this filetype).
This is different than just "executing" the file, so `start filename` is not a solution.
Note: this would require to use ShellExecute in one way or another.
Update: I added `Python` as an alternative to `batch`.