Differences
This shows you the differences between the selected revisions of the page.
2014-03-06 | 2014-03-06 | ||
no summary (200.153.228.129) | no summary (rtek1000) | ||
Line 601: | Line 601: | ||
&deprecated_use_net | &deprecated_use_net | ||
- | __**Please note the existence of a second code. This code is functional for uploading and donwload with vb .net 2005**__ | + | __**Please note the existence of a second code. This code is functional for uploading and donwload with vb .net 2005. This same code that worked in VB . Net 2005 was also tested in VB .Net 2012 (Version 11.0.50.727.42 & Netframework Version 4.5.50938) and worked without changes**__ |
Following is more robust alternative to simple example contained in guide to [[guide_dotnet|SFTP file transfers in .NET]]. | Following is more robust alternative to simple example contained in guide to [[guide_dotnet|SFTP file transfers in .NET]]. | ||
Line 693: | Line 693: | ||
The Full Project can be download at link forum: | The Full Project can be download at link forum: | ||
winscp.net/forum/viewtopic.php?p=49701#49701 | winscp.net/forum/viewtopic.php?p=49701#49701 | ||
+ | |||
+ | This code that work in VB .Net 2005 and also tested in VB .Net 2012 and worked without changes. (W7 x64 RAM: 2GB) | ||
<code vbnet> | <code vbnet> | ||
Line 881: | Line 883: | ||
process.StandardInput.WriteLine(_connect) | process.StandardInput.WriteLine(_connect) | ||
process.StandardInput.WriteLine("get " & remoteFilePath & " " & localFilePath) | process.StandardInput.WriteLine("get " & remoteFilePath & " " & localFilePath) | ||
+ | process.StandardInput.WriteLine("close") | ||
+ | process.StandardInput.WriteLine("exit") | ||
process.StandardInput.Close() | process.StandardInput.Close() | ||
Line 1015: | Line 1019: | ||
<trailer> | <trailer> | ||
===== Further Reading ===== | ===== Further Reading ===== | ||
+ | |||