Microsoft scripting runtime references for mac

broken image
broken image
broken image

This example demonstrates how to use the FileSystemObject in the Scripting Runtime library to get a unique temporary file name and copy the contents to the temporary file. Perhaps you need to persist the state of an object to the user’s PC or make a backup file during a save operation. Sometimes you need to create a temporary file. (Check the Microsoft Scripting Runtime reference and click OK in the Add References dialog.) The examples will use early bound objects rather than late bound objects using CreateObject, but you can use CreateObject and Variant types to dynamically load external libraries at runtime. In this week’s article I will demonstrate several of the basic capabilities of the Microsoft Scripting Runtime.īefore we begin, as a reminder you will need to add a reference to the Scripting Runtime library in VB6 from the Project|References menu. The TextStream class is defined to represent files as a contiguous stream of text data and makes managing text file content much easier than using the legacy VB Open, Close, Line Input, and other such commands. FileSystemObject represents your PC’s file system and includes such capabilities as creating temporary files, managing directories, and managing files. These facilities include the FileSystemObject and TextStream classes. The scrrun.dll defines several objects for managing files.

broken image