| | |
Adding Micorsoft Scripting Runtime dll
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2007
Posts: 47
Reputation:
Solved Threads: 0
Post Thread: Searching Database file if existing or not.
How to Add the Microsoft scripting runtime dll in my Project reference menu. I saw Microsoft Script in the components. Is this the file?
Anybody can help me or give me step by step procedure to add this Microsoft Scripting runtime dll in my project.
Thanks
How to Add the Microsoft scripting runtime dll in my Project reference menu. I saw Microsoft Script in the components. Is this the file?
Anybody can help me or give me step by step procedure to add this Microsoft Scripting runtime dll in my project.
Thanks
scrrun.dll
That's the exact name of the dynamic link library (dll).
In that library of functions, the file system object can be referenced and used.
To add a reference to your project, simply click on the the Projects menu, click on the References Menu, and a form should show up listing the different libraries that are registered to be used with Visual Basic.
They are in alphabetical order. Look for Microsoft Scripting Runtime and check it's box, if it's not checked already. The Microsoft Script Control is a component used for writing scripts. It does not include the File System Object.
In the declarations section of your form you should declare your own File System Object. Declare an object variable
And then you should instantiate the object or make an instance of the object using the Set statement
More in depth information should be gleaned from the MSDN Library: What Can You Do With Visual Basic: Processing Drives, Folders, and Files
That's the exact name of the dynamic link library (dll).
In that library of functions, the file system object can be referenced and used.
To add a reference to your project, simply click on the the Projects menu, click on the References Menu, and a form should show up listing the different libraries that are registered to be used with Visual Basic.
They are in alphabetical order. Look for Microsoft Scripting Runtime and check it's box, if it's not checked already. The Microsoft Script Control is a component used for writing scripts. It does not include the File System Object.
In the declarations section of your form you should declare your own File System Object. Declare an object variable
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Option Explicit dim MyFS0 as FileSystemObject Dim strFileName as String
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Form_Load() Set MyFSO = New FileSystemObject ' You can now use it. if MyFSO.FileExists(strFileName) then ' Code if it exists else ' Code if it doesn't exist endif ' Be careful to reclaim your variable space in memory after done using the object Set MyFSO = nothing End Sub
More in depth information should be gleaned from the MSDN Library: What Can You Do With Visual Basic: Processing Drives, Folders, and Files
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to make a Instal Guide/wizard??
- Next Thread: PDF Print Macro - How???
Views: 2646 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





