Messages - fjorge [ switch to compact view ]

Pages: prev1 [2]
6
Find And Run Robot / Re: Alias help needed
« on: January 15, 2009, 05:21 AM »
The use I have in mind is that I use an ssh client and I can pass it the session I want to open as a parameter. The different sessions that I have preconfigured are stored in a folder under different filenames: 1session.ini, 2session.ini, ... What I want is to be able to type 'ssh' in FARR and to get all possible sessions in the list. Then if I type '2' only sessions starting with 2 will remain in the results. Note that the parameter I have to pass to the client is '2session', not '2session.ini', so there should be a way to delete the extension of the files.

I have tried something like:

Regular Expr Pattern:
^+ssh (.*)

Results:
C:\Archivos de programa\SSH\ssh.exe dosearch D:\Documents and Settings\t148594\Datos de programa\SSH\Sessions\$$1.ini

But it does not seem to work. It only shows the files that match the argument I type after ssh, and not even those in the folder I specify after the dosearch command, but all of them.

Is it not possible to add strings before and after the results? I think this could help me.


7
Find And Run Robot / Re: Alias help needed
« on: January 14, 2009, 03:10 PM »
Hi,

Thanks for your reply. The thing is the following:

Just imagine you would like to to have an alias called 'np' that opens a file with, let's say notepad. But you want to restrict the files that you can open with this alias to the ones stored in a certain folder. And imagine that in order to open a file with notepad you were not allowed to pass filename.ext as parameter, but only filename. And additionally, you would like the file list to be dinamically updated while you write the first letters of the file you want to open. For example, as you type np[SPACE] you see the list of all files; if you then press 'a', you see only files that start with 'a'.

Could this be achieved somehow?

Fran

8
Find And Run Robot / Alias help needed
« on: January 14, 2009, 11:08 AM »
Hi,

I want to do the following:

I use a program that can be launched with a parameter. The possible values for this parameter are all files in a folder, but without the extension. For example, lets say I have the c:\Parameters folder with the following files:

1st-Parameter.ini
2nd-Parameter.ini
...
Nth-Parameter.ini

And I want to launch the program as:

Program.exe /config 2nd-Parameter

How can I do this with FRR, the way that I type: Program[SPACE] and then I get the list of all files in the C:\Parameters, but then if I type 2, the options are reduced to 2nd-Parameter?

Its kinda hard to explain, so I hope someone understands my problem and can help.

Regards,
Fran

Pages: prev1 [2]
Go to full version