I would like to put the name of the drive from which I booted up my computer into a text register.
Since the name of this drive is given by the Windows environment variable %HOMEDRIVE%, I could do this via redirection. Here are the details:
System("cmd /c set HOMEDRIVE >|(VEDIT_TEMP)\homedrive.tmp")
This little macro, indeed, works for me.
According to the Vedit on-line help:
Out_Reg(r) Re-route console output to T-Reg 'r'.
So, I thought that the Out_Reg( ) command would do this task faster. However, I can not make it work.