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" .
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" .
This still is not working for me inside the DQL program. What am I missing?
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.