On 5/31/2007 10:34:51 PM, Ian Binnie wrote:
Thanks Ian,
You gave me quite a few things to study.
So, at present I shall concentrate on:
>Windows 2K, XP does allow multiple
>commands, if separated by "&&".
>I doubt this would work from Vedit, as
>it is calling a 16bit process.
>
>In practice these are hard to debug, and
>it is much easier to just construct a
>batch file.
>
In the meantime, I have been studying the CMD.EXE command switches, in particular the && switch. You are right that I could not use it in Vedit. When I tried to connect two commands in the argument of the Vedit System( ) function, I ended up with an error message.
In studying these switches Vedit was really helpful. Specifically, I used the Vedit macro,
system("cmd /?", MAX).
This macro opened up a Maximal DOS window and typed out a few pages of information. So, a big thank you to Ted for this big window !
Of course, I would have much preferred to pipe this information to a file. So, I also experimented with the macro,
system("cmd /? > com.txt", MAX)
However, this macro ignored the piping part of the command.
So, I tried to use the same command from the Windows 2000,
{start, run } menu. I got the same result. That is to say the piping part was ignored. Of course, I could not tell Windows 2000 to maximize the window.
My system seems to be stable and I just do not know why the piping part of the command was ignored. I would really appreciate your repeating this simple experiment for me.
Looking forward to hearing from you.
-peter.
|
|