DOS Compatibility

RACE is DOS-based, meaning that some MS-DOS commands exist and work in the RACE environment. They can also be used in Neurox as functions.

Basic built-in MS-DOS commands

MOVE(path, newPath)

The MOVE function allows to move a specific file or folder to another path.

DEFINE NEUROX
MOVE("C:\WINDOWS\MEDIA\CAT_PICTURES", "C:\WINDOWS\MEDIA\PICTURES")

COPY(path, newPath)

The COPY function allows to copy a specific file or folder to another path and delete it from the original path.

DEFINE NEUROX
COPY("C:\WINDOWS\MEDIA\CAT.JPEG", "C:\WINDOWS\MEDIA\PICTURES\CAT_PICTURES")

REN(path, newName)

The REN function allows to rename a file or a folder to a specific string given by the user.

DEFINE NEUROX
REN("C:\WINDOWS\MEDIA\PICTURES\CAT.JPEG","CAR")
//CAT.JPEG will be renamed CAR.JPEG

DEL(path)

The DEL function allows to remove a file from a specific path.

RMDIR(path)

The RMDIR function allows to remove a directory from a specified path. Note that the directory must be empty otherwise it won't be deleted.

MKDIR(path, directoryName)

The MKDIR function allows to create a directory in a specified path.

CAT(path)

The CAT function shows in the console the content of a file in a specified path.

ECHO(content, path, file_type, name)

The ECHO function creates a file with a given file_type, content in a given path.

DEBUG()

Enable/disabled the DOS debug mode ( Debug handler ).

Last updated