Syntax
WinToDOS$(StringToTranslate$)
Remarks
In Windows, translates a string from the Windows character set to the original equipment manufacturer (OEM) character set. On the Macintosh, WinToDOS$() 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 through 31 and 128 through 255) are generally different from the Windows characters.
Example
This example opens a sequential file created by a Windows-based application, translates each line to the OEM character set, and places the result in a new sequential file:
ChDir "C:\TMP" Open "WINDOWS.TXT" For Input As #1 Open "DOS.TXT" For Output As #2 While Not Eof(1) Line Input #1, temp$ Print #2, WinToDOS$(temp$) Wend Close
See Also
DOSToWin$()