os.Path.chvolume

The os.Path.chvolume is used to change the working volume at current. The syntax of the method is as follows:

 

CALL os.Path.chvolume(new_volume) RETURNING result

 

where:

 

Here is an example of the os.Path.chvolume method calling:

 

#changes the current working volume to "C:\"

CALL os.Path.chvolume ("C:\\")RETURNING result 

 

As the backslash symbol is a default escape symbol which makes the compiler treat the symbol following it as a literal character and ignore its special functionality, to add a backslash symbol to a character string you have to use a double backslash in the source code or four symbols in a row to add a double backslash:

DISPLAY "This is a backslash: \\"

DISPLAY "This is a double backslash: \\\\"

 

The method can be used on Windows OS only.