topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • June 23, 2018, 08:51 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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 - fjorge [ switch to compact view ]

Pages: [1]
1
Find And Run Robot / Re: Alias help needed
« on: January 20, 2009, 02:52 AM »
Would using a batch file to perform manipulation of session.ini filenames be of any help as a piece of this puzzle?

FWIW, the following removes the .ini portion (along with double quotes) of a string passed as a first argument to the batch file:

REM based on http://groups.google...msg/923423bf3143fcdd
REM try to manipulate first argument to batch file
SET inifilename=%1
REM remove .ini
SET inifilename=%inifilename:.ini=%
REM remove double quotes
SET inifilename=%inifilename:"=%
ECHO %inifilename%

It may be that using double quotes may be important depending on the file path being manipulated.

Is there any way for FARR to run this batch over the results?

2
Find And Run Robot / Re: Alias help needed
« on: January 15, 2009, 10:16 AM »
I look forward to seeing this implemented in FARR.

Thanks a lot.

3
Find And Run Robot / Re: Alias help needed
« on: January 15, 2009, 07:54 AM »
Yeah, you have caught the point. That is exactly what I would need. Do you think it is doable?

4
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.


5
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

6
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: [1]