将文件从Win XP发送到VB6中的Unix [英] Send File from Win XP to Unix in VB6

查看:51
本文介绍了将文件从Win XP发送到VB6中的Unix的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一个问题需要您的帮助.

我的问题是我想使用VB6从Win XP向Unix计算机发送文本文件.

我不怎么编码.

我希望你能帮助我.

Hi everyone!

I has a problem that needs your help.

My problem is that I want to send a text file from Win XP to Unix machine using VB6.

I do not how to code it.

I hope that you will help me.

thanks.

推荐答案

如果可以在Unix系统上启用Samba共享,则发送文件可能与本地文件副本一样简单.我相信VB6有一个Shell命令,可以让您调用诸如copy之类的命令,或者VB6可以让您调用API.您可以使用CopyFile API.
If you can enable Samba shares on the Unix system, then sending a file may be as simple as a local file copy. I believe VB6 has a Shell command that lets you invoke commands like copy or alternatively VB6 lets you invoke the API. You can use the CopyFile API.


您可以使用System.Net.WebClient

这是一个示例:
在C#2.0中上传简单的FTP文件 [ http://www.vbforums.com/showthread.php?t=278027 [ ^ ]

问候
Espen Harlinn
You can use System.Net.WebClient

Here is an example:
Simple FTP file upload in C# 2.0[^]

And here is another for VB6
http://www.vbforums.com/showthread.php?t=278027[^]

Regards
Espen Harlinn


感谢Espen Harlinn的代码
但是我的应用程序是Window应用程序,并且我使用的是VB6而不是C#.
您可以给我其他在VB6中运行的代码吗?
thanks Espen Harlinn''s code
but my application is Window application and I used VB6 not C#.
you can give me other code that it run in VB6?


这篇关于将文件从Win XP发送到VB6中的Unix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆