Simplicty and flexibility!


DOS commands in LegEasy


Started by SG
Search
You will need to Sign In to be able to add or comment on the forum!

DOS commands in LegEasy

My DOS commands using 'call program' are not working when I moved my databases over to LegEasy 4DOS. Can any one help me?

Example of a procedure....

--List DB backups

call program "dir e:\backup\video /o-d|more" .

call program "dir f:\backup\video /o-d|more" .

call program "dir g:\backup\video /o-d|more" .


Written by SG 18/04/17 at 23:15:17 LegEasy 4DOS

Re:DOS commands in LegEasy

It is not the call program which is the problem, but rather the format of the command.

LegEasy4DOS includes a variation of DOS 5. Not sure when the |more option was introduced but I can remember back in the day that it was the "alternative" to /p.

Can't for the life of me remember what was better about it, but tested it and /p works. 

I think I remember that this is called a pipe and it could be used generically i.e. for typing out text files in pages etc, as it was not a feature of the command,but rather a feature of the OS.

Anyhow, your solution is simple as you can simply use DIR's own pagination command /p.

call program "dir e:\backup\video /o-d /p" .

call program "dir f:\backup\video /o-d /p" .

call program "dir g:\backup\video /o-d /p" .


Written by DataEase 19/04/17 at 11:26:30 LegEasy 4DOS

Re:Re:DOS commands in LegEasy

This still is not working for me inside the DQL program.  What am I missing?


Written by SG 27/04/17 at 01:35:15 LegEasy 4DOS

Re:Re:Re:DOS commands in LegEasy

You are running in a different environment so you have to make sure that paths etc are correct.
Firstly you need to insure that the command you try to run is valid (with path etc).

Go to DataEase Main Menu.

Choose 6.4.6 i.e. DOS Prompt.

Try to execute the commands you try to fire directly on the command prompt (dos prompt) inside DE. 

It is not the same Command Prompt as directly in Windows as this is emulated.

If the command fire there it will fire from the DQL too.

You might not have access to the drive you try to run on etc.

If you type 

USE

You will see what drives are mapped.


Written by DataEase 27/04/17 at 09:22:56 LegEasy 4DOS
DG3_ForumList