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.


Messages - ariden

Pages: [1]
1
Grrr, I didn't see the ! when creating the alias. Now the alias page makes a lot of sense!

Thank you so much.

2
I know how to focus a file and use ${focusfilepath}, but I don't want to focus to any file while I'm using the command. Also, I just gave base.txt as an example, but I can have other files in there, such as base2.txt, or base3.txt etc.

I'm looking for a custom command that can open any 1 file without a focus, something like this:
notepad2 base.txt (to open base.txt with notepad2), or
notepad2 base2.txt (to open base2.txt with notepad2), or
notepad2 base3.txt (to open base3.txt with notepad2)


It's similar to this: Although I have many folders in C:\Users\, I can just type cd Master but I don't need to focus on the folder called Master for changing directory.

I hope this example is clearer.

3
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]