Page 1 of 1

Opening Files From Command Results

Posted: Wed Feb 07, 2001 12:30 pm
by David Sargent
I run a utility which creates a file and the following is output to the command results window.

Record saved to O:\RC\ANSWER\Q6

What I would like to do is to click on the file name and textpad open the file for me.

I'm sure this is quite simple but I don't know where to start and trawling through the forum has left me more confused than ever.

Re: Opening Files From Command Results

Posted: Wed Feb 07, 2001 8:11 pm
by Andreas
You should put the following into the
Regular expression to match output
edit field:

Record saved to \(.*\)

and select 1 in the "File Register" combo.

Andreas

Re: Opening Files From Command Results

Posted: Thu Feb 08, 2001 4:55 am
by Randall McDougall
Click on the File name (to put the cursor there) and enter ctrl+shift+g to open the file (if the filename isn't surrounded by whitespace you need to select it).

If you use it a lot you may want to assign the function to an easier key combo (it's set in "Configure/Preferences/Keyboard/File [FileGoTo]" ).

Re: Opening Files From Command Results

Posted: Thu Feb 08, 2001 11:01 am
by David Sargent
This worked great. Thankyou.
I must get to grips with these regular expressions as they seem quite useful.

Re: Opening Files From Command Results

Posted: Thu Feb 08, 2001 4:20 pm
by Roy Beatty
Indubitably!

The following url will help you in your quest:

http://equity.wharton.upenn.edu/~epstei ... n_faq.html

Good luck,

Roy