/* The flags for the builtins. */
#define BUILTIN_CMDLINE 0x1 /* Run in the command-line. */
#define BUILTIN_MENU (1 << 1)/* Run in the menu. */
#define BUILTIN_TITLE (1 << 2) /* Only for the command title. */
#define BUILTIN_SCRIPT (1 << 3)/* Run in the script. */
#define BUILTIN_NO_ECHO (1 << 4) /* Don't print command on booting. */
#define BUILTIN_HELP_LIST (1 << 5)/* Show help in listing. */
#define BUILTIN_BOOTING (1 << 6) /* The command is boot-sensitive. */
#define BUILTIN_BAT_SCRIPT (1 << 7)
#define BUILTIN_USER_PROG (1 << 8)
这个你可以自己变通,比如以下命令,文件未找到时就只会提示File not found,而不会中止运行了。
wenv dir *.iso || echo File not found
需要转向也是一样的
wenv dir *.iso > (md)0x300+1 || echo File not found