Syntax
DOSToWin$(StringToTranslate$)
Remarks
In Windows, translates a string from the original equipment manufacturer (OEM) character set to the Windows character set. On the Macintosh, DOSToWin$() performs no translation and returns the specified string unchanged.
The OEM character set is typically used by MS-DOS applications. Characters 32 through 127 are usually the same in the OEM and Windows character sets. The other characters in the OEM character set (0 (zero) through 31 and 128 through 255) are generally different from the Windows characters.
Example
This example opens a sequential file created by an MS-DOS application, translates each line to the Windows character set, and places the result in a new sequential file:
ChDir "C:\TMP" Open "DOS.TXT" For Input As #1 Open "WINDOWS.TXT" For Output As #2 While Not Eof(1) Line Input #1, temp$ Print #2, DOSToWin$(temp$) Wend Close
See Also
WinToDOS$()