Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ariden

Pages: [1]
1
Let's say I have Notepad2 installed in its own folder. I also have another folder named Work with the file named Base.txt inside. I want something that works like this.

If I type into the command line: notepad2
It will open Notepad2.exe, with a blank text file.

If I type into the command line at the Work folder: notepad2 Base.txt
It will open Base.txt with Notepad2.exe.


I've tried making a custom command like this:
MC.Run CMD="C:\Users\Master\Notepad2.exe"
then using an alias for notepad2. It works here for this part.

But when I use Multi Commander while in the Work folder, how do I open the Base.txt with the Notepad2 program as a command? (assume that the default program for text files is Notepad, not Notepad2)

I have tried this:
MC.Run CMD="C:\Users\Master\Notepad2.exe" ARG="${focusfilepath}"

However, this does not work because ${focusfilepath} is only used if there is a focus in Multi Commander. I don't want the command to need a focus, something like a unix shell. I have also tried external commands and other multi-tags, but they don't seem to work. What is the best way to solve this problem?

Thank you.

Pages: [1]