Topic: Cannot Shell Out Error #2 (1 of 9), Read 84 times
Conf: Error messages, Crashes
From: Peter Rejto
Date: Wednesday, July 02, 2003 11:09 AM

Hello,

The menu command, {Misc, Dos Shell, "dir"} works fine for me. However, if I try to run this via the macro:
System("dir")
I get the error message
Cannot Shell Out Errror #2.
More specifically, I copy the string System("dir") to the clipboard and use the Ctrl-V command.

Thanks,

-peter.

 


Topic: Re: Cannot Shell Out Error #2 (2 of 9), Read 85 times
Conf: Error messages, Crashes
From: Fritz Heberlein
Date: Wednesday, July 02, 2003 12:58 PM

> The menu command, {Misc, Dos Shell, "dir"} works fine for me. However,
> if I try to run this via the macro: System("dir") I get the error
> message Cannot Shell Out Errror #2. More specifically, I copy the
> string System("dir") to the clipboard and use the Ctrl-V command.
>

Peter:

you have to invoke the command interpreter first before you can pass a
command to it. Assuming, e.g., you are using the TakeCommand
interpreter, your sys( ) command would be

sys("c:\tcmd\tcmd32 dir").

But remember, you can do a simple dir() command from within Vedit
as well.

Fritz

--
Dr. Friedrich Heberlein, Akad. Direktor
Seminar f. Klassische Philologie,
KU Eichstätt-Ingolstadt / Bayern
D-85071 Eichstaett

 


Topic: Re: Cannot Shell Out Error #2 (8 of 9), Read 82 times
Conf: Error messages, Crashes
From: Ted Green
Date: Friday, July 04, 2003 12:20 PM

(Sorry for the slow reply; there seems to be a problem replying to webboard by email.)

In the Windows version, System("dir") would attempt to run a Windows program called "dir", which does not exist.

The correct command is: System("dir",DOS)

The starts a DOS box and then issues the "dir" command to the DOS box.

Look up the on-line help for the System() command. There are MANY options. Experimentation is the best way to understand the options. Even I have to look up the options and experiment each time I use the System() command. The behavior is also slightly different between Win 95/98/ME and Win NT/2000/XP.

Ted.

 


Topic: Cannot Shell Out Error #2 (3 of 9), Read 86 times
Conf: Error messages, Crashes
From: Christian Ziemski
Date: Wednesday, July 02, 2003 03:42 PM

>From: "Peter Rejto"
>
>The menu command, {Misc, Dos Shell, "dir"} works fine for me. However, if I try to run this via the macro:
>System("dir")
>I get the error message
>Cannot Shell Out Errror #2.

Try System("dir" , DOS) and the additional combinations of options
with "DOS" stated in the online help ("SIMPLE" etc.)

Christian

 


Topic: Cannot Shell Out Error #2 (4 of 9), Read 89 times
Conf: Error messages, Crashes
From: Fritz Heberlein
Date: Wednesday, July 02, 2003 05:33 PM

> Try System("dir" , DOS) and the additional combinations of options with "DOS" stated in the online help ("SIMPLE" etc.)

BTW: the help file displays in two sections, viz. "directory()" and "Execute DOS commands or programs"
the example

sys("dir *.txt")


which results in the "cannot shell out" error mentioned by Peter.

Fritz

 


Topic: Cannot Shell Out Error #2 (5 of 9), Read 89 times
Conf: Error messages, Crashes
From: Peter Rejto
Date: Wednesday, July 02, 2003 07:04 PM

Thanks Fritz and Christian,

Now I see that I missed the "DOS" parameter and this is why I got the error message, CANNOT SHELL OUT, ERROR #2.

I am reformulating Fritz's explanation: that is to say, this error message means that Vedit can not find a Command Interpreter. It is certainly nice to put this error message in a more general context. Now I understand that the "DOS" parameter means that my Command Interpreter is an additional copy of DOS. Incidentally, I was looking at Chapter 9, Error Messages, but could not find this one. Now I can annotate this .pdf file.

Actually, the System("dir",DOS) is only a model problem.
My original problem is something like System(File_Mkdir, "12..21)",DOS) I say something like this, since I have to study the File_ family of commands. This remind me, this is a very delicate family of commands. I had some trouble with it before, and I remember Ted's joke about it. Then webboard got upgraded and we lost some questions, including mine.

Am I the only one who uses the File_Mkdir command and has some problems?

Thanks again,

-peter.

 


Topic: Cannot Shell Out Error #2 (6 of 9), Read 90 times
Conf: Error messages, Crashes
From: Christian Ziemski
Date: Thursday, July 03, 2003 05:25 AM

On 7/2/2003 7:04:40 PM, Peter Rejto wrote:
>My original problem is something like
>System(File_Mkdir,"12..21)",DOS)

What's that?

File_Mkdir() has nothing to do with System().

Use it directly like this:
File_Mkdir("C:\newdirectory")

Or if you really want to use System():
System("mkdir c:\newdir", DOS+SIMPLE)
But then you are using the DOS-command-shell builtin "mkdir" and not VEDIT's command.


Christian

 


Topic: Cannot Shell Out Error #2 (7 of 9), Read 88 times
Conf: Error messages, Crashes
From: Peter Rejto
Date: Thursday, July 03, 2003 10:59 AM

On 7/3/2003 5:25:47 AM, Christian Ziemski wrote:
....
>What's that?
>
>File_Mkdir() has nothing to do with
>System().
>
>Use it directly like this:
>File_Mkdir("C:\newdirectory")
>
>Or if you really want to use System():
>System("mkdir c:\newdir", DOS+SIMPLE)
>But then you are using the
>DOS-command-shell builtin "mkdir" and
>not VEDIT's command.

Thanks Christian,

for pointing out my confusion! In other words, I had the wrong model problem!

At the same time, I learned a lot from the wrong model problem. Incidentally, do you know the meaning of the other
ERROR # -s in the CANNOT SHELL OUT error message?


Thanks again,

-peter.

 


Topic: Cannot Shell Out Error #2 (9 of 9), Read 61 times
Conf: Error messages, Crashes
From: John H
Date: Wednesday, May 05, 2004 01:13 PM

I don't recall having tried this with 6.11 or previous 6.12 betas but with the 5-4-2004 beta I had this error when trying to install the DOS version before having installed the windows version.
This was with Windows 2000..
--
John