Differences
This shows you the differences between the selected revisions of the page.
2012-02-08 | 2012-02-10 | ||
title for enum example (martin) | library_install (martin) | ||
Line 1: | Line 1: | ||
- | ====== Using WinSCP .NET Assembly via COM and from WSH-hosted Languages ====== | + | ====== Using WinSCP .NET Assembly from WSH-hosted Active Scripting Languages ====== |
&future_feature | &future_feature | ||
- | ===== [[registering]] Registering for COM ===== | ||
- | [[library|WinSCP .NET assembly]] exposes its full interface to COM. As a COM library, it needs to be registered before use. To register the assembly use: | ||
- | <code> | ||
- | %WINDIR%\Microsoft.NET\Framework\<version>\RegAsm.exe WinSCP.dll /codebase /tlb | ||
- | </code> | ||
- | Where the ''%WINDIR%'' is path to your Windows installation, what is typically ''C:\Windows'' or ''C:\WINNT''. Note that you can keep ''%WINDIR%'' as this environment variable should be set on your system to point to the Windows folder. The ''<version>'' is version of .NET framework to register the assembly with. It is recommended to use the latest available, what currenly is ''v4.0.30319''. You may however use any framework version from 2.0 (''v2.0.50727'') up. Note that framework 3.0 and 3.5 do not ship with ''RegAsm.exe''. For these versions use ''RegAsm.exe'' from 2.0. | ||
- | Typical registration command for .NET 4.0 would be: | + | ===== Installing and Registering for COM ===== |
- | <code> | + | First, you need to [[library_install|install the WinSCP·.NET assembly and register it for COM]]. |
- | %WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCP.dll /codebase /tlb | + | |
- | </code> | + | |
===== Using from WSH ===== | ===== Using from WSH ===== |