Microsoft Scripting Runtime in Visual Basic 6 Corinth MS

Paul Kimmel discusses the runtime scripting engine and using it from Visual Basic.

Local Companies

Scruggs & Associates
(601) 649-0383
542 Central Ave
Laurel, MS
Bynoe Consulting
(601) 607-4747
7736 Old Canton Rd Ste B
Madison, MS
H P N Consulting Group Llc
(601) 957-8386
875 Northpark Dr
Ridgeland, MS
H Pn Consulting Group
(601) 957-3470
875 Northpark Dr
Jackson, MS
Premise Inc
(601) 579-9475
7 Woodstone Plz Ste 6
Hattiesburg, MS
Southeastern Consulting Group Inc
(601) 362-1400
4793 McWillie Dr
Jackson, MS
3 In 1 Technology Solutions
(601) 857-0791
160 Justin Ln
Raymond, MS
Maps Software Inc
(662) 328-6110
409 15th St S
Columbus, MS
Micro-Sped
(662) 455-1967
400 E Washington St
Greenwood, MS
Scruggs & Associates
(601) 426-3419
542 Central Ave
Laurel, MS

provided by: 
Originally published at Internet.com


The scrrun.dll defines several objects for managing files. These facilities include the FileSystemObject and TextStream classes. FileSystemObject represents your PC's file system and includes such capabilities as creating temporary files, managing directories, and managing files. 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. In this week's article I will demonstrate several of the basic capabilities of the Microsoft Scripting Runtime.

Before we begin, as a reminder you will need to add a reference to the Scripting Runtime library in VB6 from the Project|References menu. (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.

Creating a Temporary File



Sometimes you need to create a 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. 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...

Read article at Internet.com site

Featured Local Company

Delta Consulting Group, Inc

9014731708
11835 Stable View Drive
Memphis, TN


Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML