I have a question about running the Vedit System( ) command
when the argument is coming from a Vedit T-Register.
I think that I have checked that the content of the T-Register is a valid Win2K command. So, I pasted the content of that T-Register to the Start>Run window of Win2K
and Win2k indeed, could execute it.
Actually, this is not a high priority item for me it is just bugging me. Possibly, it was not the purpose of the System( ) command, to run complex Win2K commands? Possibly,
I made a typo after all and I am asking Vedit to execute a Win2k command, that Win2K itself can not execute.
There are too many possibilities, and I just would like to know the answer.
Here are the specifics:
If I put some Win2K commands into a Vedit Text Register, I can execute them via the Vedit System( ) command.
An example of a Win2K command which I can execute this way is the "dir" command. Specifically, if I put the string "dir" into T-Reg 69 then the Vedit commands
Next I tried to replace the string "dir" with a more complex Win2K command. Specifically, I tried the Win2k command:
cmd %comspec% /k DOSKEY /?
I have no problem running the Vedit command:
System("cmd %comspec% /k DOSKEY /?").
However, if I put the string
"cmd %comspec% /k DOSKEY /?"
into, say T_register 79 then the Vedit command
gives me a CAN NOT SHELL OUT, ERROR 2 message.