Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSH - Where to find info about API's, dll's, ocx...

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Im looking for futher info about the use of API's, dll's, ocx... which are deliverd by the Windows Operating System or third parties. Most of the intrest is going to sending email, faxes, producing barcodes. (Using Windows Scripting Host).

many thanks
 
Hi not over sure if this is the answer to your question.

But if you need to find out lets say functions and methods for the OS File System, you would use something like below.

Viewer read on

Title = "David M "
Set args = WScript.Arguments
Set fso = CreateObject("Scripting.FileSystemObject")
Set ws = CreateObject("WScript.Shell")
InFile = fso.GetSpecialFolder(2) & "\" & fso.GetTempName
Set ftp = fso_OpenTextFile(InFile, 2, True)
OutFile = fso.GetSpecialFolder(2) & "\" & fso.GetTempName
arOutlines = Array()

Or maybe for Outlook

Set objOutlook = CreateObject("Outlook.application")
Set objNameSpace = objOutlook.GetNamespace("MAPI")
Set mItem = objOutlook.CreateItem(olMailItem)

BUT of course where on earth do you find these functions and methods For Outlook or File system , or any application installed on your computer.....

This is the easy part. (you have Excel installed yes)

1) Open a blank Excel sheet
2) The press "Alt and F11)
3) Followed by F2
4) Select Tools, References
5) Scroll down and select " Windows Scripting Host Object Model" this actually for WSHscripts function etc.
6) The Tricky to explain bit, look at the Format and Debug options in the Blue Menu bar " don't press any key " You will see two drop down boxs below, select the first scoll down and select IWshRuntimeILibrary.

And there you go left window = WshShell right Window = its Functions and Methods.

Select any Item in right Window look at botom of the screen and view the Function details.

Hope this helps. have FUN







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top