SetOutputDirectory

Top  Previous  Next

Development status

 

NOT IMPLEMENTED YET.

 

Message

 

SetOutputDirectory <directory>

 

Originator

 

Client

 

Response

 

Info: output directory set to <directory>

SyntaxError: insufficient parameters to SetOutputDirectory

SyntaxError: invalid parameters to SetOutputDirectory

 

Response (immediate socket)

 

Success

Failure

 

Details

 

Sets the directory that the server will try to use to store output files (e.g. containing captured analogue data).

 

If the server is asked to create or open an output file called file.txt, it searches for it in the following order:

 

1.In the media directory specified by the client using SetMediaDirectory;
2.In the server's default output directory (configured on the server console);
3.As a raw filename. (If a full path is given, e.g. c:\file.bmp, then the absolute path is used; if a simple filename, e.g. file.bmp, is given, then the server searches in the current working directory for its process, typically the directory that the server's .EXE file was started from.)

 

Note that the path is relative to the server, even if you are running a client on a different computer. (It is possible to store files on a different computer. For example, if a machine called client wants a server called server to store data on the client's hard disk, it could send a filename as \\client\client_disk\directory\file.txt. However, this is not recommended practice as it depends heavily on network performance and reliability; in particular, when high-speed analogue sampling is being used, this is unwise practice.)