Topic: shell asynchronously? (1 of 3), Read 20 times
Conf: VEDIT Macro Language Support
From: Paul Breen
Date: Thursday, March 12, 2009 05:02 PM

I am trying to shell to another program from vedit with the filename, linenumber and column of the caret if possible. I don't want to shell synchronously by calling cmd.exe unless that is the only way vedit can call another program. I can call vedit this way from other editors but I have not discovered how to call other editors the same way from vedit.
Do I have to use a bat file? I could write a program that generates the bat file if that is what has to be done by sending the filename, line and col on the command line.
thanks,

 


Topic: shell asynchronously? (2 of 3), Read 20 times
Conf: VEDIT Macro Language Support
From: Ian Binnie
Date: Thursday, March 12, 2009 07:17 PM

On 3/12/2009 5:02:42 PM, Paul Breen wrote:
>I am trying to shell to
>another program from vedit
>with the filename, linenumber
>and column of the caret if
>possible. I don't want to
>shell synchronously by calling
>cmd.exe unless that is the
>only way vedit can call
>another program. I can call
>vedit this way from other
>editors but I have not
>discovered how to call other
>editors the same way from
>vedit.
Do I have to use a bat
>file? I could write a program
>that generates the bat file if
>that is what has to be done by
>sending the filename, line and
>col on the command
>line.
thanks,


Look at "RUNSHELL - Run Other Programs" in the VEDIT Help

 


Topic: Re: shell asynchronously? (3 of 3), Read 16 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Friday, March 13, 2009 03:49 PM

At 05:03 PM 3/12/2009, you wrote:
>From: "Paul Breen"
>
>I am trying to shell to another program from vedit with the filename, linenumber and column of the caret if possible. I don't want to shell synchronously by calling cmd.exe unless that is the only way vedit can call another program. I can call vedit this way from other editors but I have not discovered how to call other editors the same way from vedit.
>Do I have to use a bat file? I could write a program that generates the bat file if that is what has to be done by sending the filename, line and col on the command line.
>thanks,

Try this test command to understand the process:

itoa(cur_line,10) itoa(cur_col,11) sys("Echo Line = |@(10) Column = |@(11)",dos)

If you are shelling to a Windows program which accepts parameters, you should be able to leave the "DOS" option off.
The Sys() command has many options.

Ted.