Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why won the spawn Proc statement work under MS-Windows?

PROC Spawn
0
10 Posted

Why won the spawn Proc statement work under MS-Windows?

0
10

Under most other Operating Systems, the spawn Proc statement works as expected with the operating system command. Under UNIX, for example, spawn “ls -l” produces a directory listing. However, spawn “dir” will not work under MS-Windows. This is because some MS-DOS commands are internal to the command interpreter (also known as COMMAND.COM). To use MS-DOS commands, you need to use the spawn Proc statement with COMMAND.COM. For example: spawn “COMMAND.COM /c DIR” The ‘/C’ switch specifies that a parameter is being passed to COMMAND.COM which it must execute. The parameter in the above example is DIR.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123