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.

DEFINE NEUROX
DEL("C:\WINDOWS\MEDIA\PICTURES\DOG.JPEG")

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.

DEFINE NEUROX
RMDIR("C:\WINDOWS\MEDIA\PICTURES\DOGS_PICTURES")

MKDIR(path, directoryName)

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

DEFINE NEUROX
MKDIR("C:\WINDOWS\MEDIA\PICTURES", "MY_PICTURES")

CAT(path)

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

// Test_file.txt
// content : "hello world!"

DEFINE NEUROX
CAT("C:\WINDOWS\Test_file.txt")

>>> hello world!

ECHO(content, path, file_type, name)

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

DEFINE NEUROX
ECHO("Hello world!", "C:\WINDOWS\MEDIA", "txt", "Hello")
CAT("C:\WINDOWS\MEDIA\Hello")

>>> Hello world!

DEBUG()

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

DEFINE NEUROX
DEBUG()

Last updated