绝对高分求客户端向服务器上传与下载文件的程序 高分求助,JAVA TOMCAT实现文件上传下载
\u9ad8\u5206\u6c42\u7b80\u5355\u95ee\u9898\uff1a\u5411\u670d\u52a1\u5668\u4e0a\u4f20\u6587\u4ef6\u7684\u8868\u5355\u8bbe\u7f6e\u8ddf\u4f60\u8c03\u8bd5\u4e86\u4e00\u4e0b,\u5728jsp\u91cc\u8c03\u7684,\u5927\u4f53\u8ddfasp\u5dee\u4e0d\u591a\u5427\u3002
1.form\u91cc\u9762target="_blank"\u5c5e\u6027\u53bb\u6389.
2.\u9700\u8981\u989d\u5916\u505a\u4e9b\u4e8b\u60c5\u7684\u8bdd\uff0c\u5199\u4e00\u4e2a\u51fd\u6570\u6267\u884cwindow.open()
3.\u5982\u679c\u9700\u8981\uff0c\u4f60\u53ef\u4ee5\u628a\u6574\u4e2awindow\u4f20\u9012\u8fc7\u53bb.\u8981\u5728url\u4e2d\u5f97\u5230uid.value\u7684\u503c\uff0c\u4f60\u8fd9\u6837\u5199\u5c31\u53ef\u4ee5\u4e86
\u4ee5\u4e0b\u662f\u6211\u4fee\u6539\u4e86\u4e00\u4e0b\u7684\u6e90\u4ee3\u7801\u3002
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
\u65e0\u6807\u9898\u6587\u6863
\u9650doc\u3001swf\u3001zip\u7c7b\u578b\u3002
function check(){
form1.action="2.htm";
window.open("2.htm");
}
\u8fd9\u4e2a\u5f88\u7b80\u5355\u554a\uff0c\u4f60\u5c06\u6574\u4e2a\u7a97\u53e3\u505a\u53c2\u6570\u4f20\u9012\u8fc7\u53bb\u5c31\u53ef\u4ee5\u4e86\u3002\u6211\u5e2e\u4f60\u67e5\u4e0bAPI
\u8fd9\u6837\u5199:
function check(){
window.open("2.asp",'newWin');
form1.target=newWin;
form1.submit();
}
\u4e0d\u884c\u518dcall me
\u56de\u7b54\uff1a
1.\u4e0a\u4f20\u6587\u4ef6\u7684\u9875\u9762\uff0cform\u4e2d\u5fc5\u987b\u52a0\u5165enctype="multipart/form-data" \u5c5e\u6027. \u63d0\u4ea4\u540e\u7528request.getInputStream()\u83b7\u5f97\u6240\u6709\u7684\u6570\u636e\u3002 \u6ce8\uff1arequest\u4e2d\u6240\u6709\u7684\u6570\u636e\u53ca\u76f8\u5e94\u7684\u503c\u90fd\u4f1a\u4ece\u8fd9\u91cc\u83b7\u5f97\uff0c\u81ea\u5df1\u53ef\u4ee5\u628a\u8fd9\u4e2a\u8f93\u51fa\u6d41\u91cc\u9762\u7684\u4e1c\u4e1c\u5168\u90e8\u8f93\u51fa\u51fa\u6765\u770b\u770b\u662f\u4ec0\u4e48\uff0c\u5bf9\u521a\u63a5\u89e6\u8fd9\u90e8\u5206\u7684\u4eba\u5458\u5f88\u6709\u5e2e\u52a9\u3002 \u53e6\u4e00\u65b9\u9762\uff0c\u4e5f\u8bf4\u660e\u81ea\u5df1\u7528jsp\u5199\u4e2a\u4e0a\u4f20\u6587\u4ef6\u7684\u529f\u80fd\u633a\u8d39\u4e8b\u7684\uff0c\u4e00\u822c\u7684\u516c\u53f8\u7528\u5230\u4e0a\u4f20\u6587\u4ef6\u7684\u529f\u80fd\u65f6\uff0c\u90fd\u662f\u7528\u7f51\u4e0a\u4e00\u4e9b\u516c\u5e03\u7b2c\u4e09\u65b9jar\u5305\uff0c\u5f88\u65b9\u4fbf\u7684\u3002
2.\u628arequest.getInputStream() \u83b7\u5f97\u7684\u8f93\u51fa\u6d41\uff0c\u8f6c\u5316\u4e00\u4e0b\uff0c\u53d8\u6210\u8f93\u51fa\u6d41\uff0c\u5c31\u53ef\u4ee5\u5b58\u5230\u4f60\u60f3\u5b58\u7684\u5730\u65b9\u4e86\uff0c\u8fd9\u90e8\u5206\u9700\u8981IO\u90e8\u5206\u7684\u77e5\u8bc6\u3002
3. \u5728\u7b2c\u4e8c\u70b9\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0c\u4f60\u4f1a\u6709\u4e00\u4e2afile\u5bf9\u8c61,\u6839\u636e\u8fd9\u4e2a\u5bf9\u8c61\u7684\u4e00\u4e9b\u65b9\u6cd5\u4f1a\u83b7\u5f97\u4f60\u60f3\u8981\u7684\u6570\u636e,\u5982\u6587\u4ef6\u540d\u662fgetName() , \u7edd\u5bf9\u8def\u5f84\u662fgetAbsolutePath() \u3002\u5efa\u8bae\u628a\u6240\u6709get\u65b9\u6cd5\u81ea\u5df1\u6253\u5370\u51fa\u6765\u4f53\u9a8c\u4e00\u4e0b\u3002
4.\u6700\u7b80\u5355\u7684\u4e0b\u8f7d\u65b9\u5f0f\u5c31\u662f\u7528a\u6807\u7b7e\uff0c\u5176\u4e2d\u7684href\u5c5e\u6027\u6307\u5411\u5230\u4f60\u7684\u6587\u4ef6\u3002\u5f53\u7136\uff0c\u8fd8\u6709\u5176\u5b83\u9ad8\u7ea7\u7528\u6cd5\uff0c\u5982\u679c\u9700\u8981\u518d\u8054\u7cfb\u6211\u3002
一 WEB部分
1 首先把WEB页获得本地要上传的文件名
2 WEB通过脚本把本地文件名(绝对路径)给客户端组件
3 WEB脚本控制组件开始传送数据
4 最后判断是否传输成功
二 组件部分
1 建立INTERNET连接
2 连接FTP服务器
3 获得本地文件名(绝对路径)
4 返回远程即将保存的文件名
5 传送数据
6 判断是否传输成功,返回状态
WEB页获取本地文件
组件返回远程文件名
组件传送数据
返回
本例在VB6.0 +WIN2000+ IIS5.0 + SERV-U 5.0 下调试成功
VB部分
一、建立一个ActiveX DLL工程
二、更改工程名FtpConn
三、更改类名:clsPutFile
四、加入一个空模块到工程中,此模块主要对需要使用的函数进行声明,在此不多做解释,代码如下:
Option Explicit
Declare Function GetProcessHeap Lib "kernel32" () As Long
Declare Function HeapAlloc Lib "kernel32" (ByVal hHeap As Long, ByVal dwFlags As Long, ByVal dwBytes As Long) As Long
Declare Function HeapFree Lib "kernel32" (ByVal hHeap As Long, ByVal dwFlags As Long, lpMem As Any) As Long
Public Const HEAP_ZERO_MEMORY = &H8
Public Const HEAP_GENERATE_EXCEPTIONS = &H4
Declare Sub CopyMemory1 Lib "kernel32" Alias "RtlMoveMemory" ( _
hpvDest As Any, ByVal hpvSource As Long, ByVal cbCopy As Long)
Declare Sub CopyMemory2 Lib "kernel32" Alias "RtlMoveMemory" ( _
hpvDest As Long, hpvSource As Any, ByVal cbCopy As Long)
Public Const MAX_PATH = 260
Public Const NO_ERROR = 0
Public Const FILE_ATTRIBUTE_READONLY = &H1
Public Const FILE_ATTRIBUTE_HIDDEN = &H2
Public Const FILE_ATTRIBUTE_SYSTEM = &H4
Public Const FILE_ATTRIBUTE_DIRECTORY = &H10
Public Const FILE_ATTRIBUTE_ARCHIVE = &H20
Public Const FILE_ATTRIBUTE_NORMAL = &H80
Public Const FILE_ATTRIBUTE_TEMPORARY = &H100
Public Const FILE_ATTRIBUTE_COMPRESSED = &H800
Public Const FILE_ATTRIBUTE_OFFLINE = &H1000
Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Type WIN32_FIND_DATA
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As Long
nFileSizeLow As Long
dwReserved0 As Long
dwReserved1 As Long
cFileName As String * MAX_PATH
cAlternate As String * 14
End Type
Public Const ERROR_NO_MORE_FILES = 18
Public Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" _
(ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long
Public Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" _
(ByVal hFtpSession As Long, ByVal lpszSearchFile As String, _
lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long
Public Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" _
(ByVal hFtpSession As Long, ByVal lpszRemoteFile As String, _
ByVal lpszNewFile As String, ByVal fFailIfExists As Boolean, ByVal dwFlagsAndAttributes As Long, _
ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
Public Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" _
(ByVal hFtpSession As Long, ByVal lpszLocalFile As String, _
ByVal lpszRemoteFile As String, _
ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
Public Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" _
(ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
' Initializes an application's use of the Win32 Internet functions
Public Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" _
(ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, _
ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
' User agent constant.
Public Const scUserAgent = "vb wininet"
' Use registry access settings.
Public Const INTERNET_OPEN_TYPE_PRECONFIG = 0
Public Const INTERNET_OPEN_TYPE_DIRECT = 1
Public Const INTERNET_OPEN_TYPE_PROXY = 3
Public Const INTERNET_INVALID_PORT_NUMBER = 0
Public Const FTP_TRANSFER_TYPE_ASCII = &H1
Public Const FTP_TRANSFER_TYPE_BINARY = &H1
Public Const INTERNET_FLAG_PASSIVE = &H8000000
' Opens a HTTP session for a given site.
Public Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" _
(ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, _
ByVal sUsername As String, ByVal sPassword As String, ByVal lService As Long, _
ByVal lFlags As Long, ByVal lContext As Long) As Long
Public Const ERROR_INTERNET_EXTENDED_ERROR = 12003
Public Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" ( _
lpdwError As Long, _
ByVal lpszBuffer As String, _
lpdwBufferLength As Long) As Boolean
' Number of the TCP/IP port on the server to connect to.
Public Const INTERNET_DEFAULT_FTP_PORT = 21
Public Const INTERNET_DEFAULT_GOPHER_PORT = 70
Public Const INTERNET_DEFAULT_HTTP_PORT = 80
Public Const INTERNET_DEFAULT_HTTPS_PORT = 443
Public Const INTERNET_DEFAULT_SOCKS_PORT = 1080
Public Const INTERNET_OPTION_CONNECT_TIMEOUT = 2
Public Const INTERNET_OPTION_RECEIVE_TIMEOUT = 6
Public Const INTERNET_OPTION_SEND_TIMEOUT = 5
Public Const INTERNET_OPTION_USERNAME = 28
Public Const INTERNET_OPTION_PASSWORD = 29
Public Const INTERNET_OPTION_PROXY_USERNAME = 43
Public Const INTERNET_OPTION_PROXY_PASSWORD = 44
' Type of service to access.
Public Const INTERNET_SERVICE_FTP = 1
Public Const INTERNET_SERVICE_GOPHER = 2
Public Const INTERNET_SERVICE_HTTP = 3
' Opens an HTTP request handle.
Public Declare Function HttpOpenRequest Lib "wininet.dll" Alias "HttpOpenRequestA" _
(ByVal hHttpSession As Long, ByVal sVerb As String, ByVal sObjectName As String, ByVal sVersion As String, _
ByVal sReferer As String, ByVal something As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long
' Brings the data across the wire even if it locally cached.
Public Const INTERNET_FLAG_RELOAD = &H80000000
Public Const INTERNET_FLAG_KEEP_CONNECTION = &H400000
Public Const INTERNET_FLAG_MULTIPART = &H200000
Public Const GENERIC_READ = &H80000000
Public Const GENERIC_WRITE = &H40000000
' Sends the specified request to the HTTP server.
Public Declare Function HttpSendRequest Lib "wininet.dll" Alias "HttpSendRequestA" (ByVal _
hHttpRequest As Long, ByVal sHeaders As String, ByVal lHeadersLength As Long, ByVal sOptional As _
String, ByVal lOptionalLength As Long) As Integer
' Queries for information about an HTTP request.
Public Declare Function HttpQueryInfo Lib "wininet.dll" Alias "HttpQueryInfoA" _
(ByVal hHttpRequest As Long, ByVal lInfoLevel As Long, ByRef sBuffer As Any, _
ByRef lBufferLength As Long, ByRef lIndex As Long) As Integer
' The possible values for the lInfoLevel parameter include:
Public Const HTTP_QUERY_CONTENT_TYPE = 1
Public Const HTTP_QUERY_CONTENT_LENGTH = 5
Public Const HTTP_QUERY_EXPIRES = 10
Public Const HTTP_QUERY_LAST_MODIFIED = 11
Public Const HTTP_QUERY_PRAGMA = 17
Public Const HTTP_QUERY_VERSION = 18
Public Const HTTP_QUERY_STATUS_CODE = 19
Public Const HTTP_QUERY_STATUS_TEXT = 20
Public Const HTTP_QUERY_RAW_HEADERS = 21
Public Const HTTP_QUERY_RAW_HEADERS_CRLF = 22
Public Const HTTP_QUERY_FORWARDED = 30
Public Const HTTP_QUERY_SERVER = 37
Public Const HTTP_QUERY_USER_AGENT = 39
Public Const HTTP_QUERY_SET_COOKIE = 43
Public Const HTTP_QUERY_REQUEST_METHOD = 45
Public Const HTTP_STATUS_DENIED = 401
Public Const HTTP_STATUS_PROXY_AUTH_REQ = 407
' Add this flag to the about flags to get request header.
Public Const HTTP_QUERY_FLAG_REQUEST_HEADERS = &H80000000
Public Const HTTP_QUERY_FLAG_NUMBER = &H20000000
' Reads data from a handle opened by the HttpOpenRequest function.
Public Declare Function InternetReadFile Lib "wininet.dll" _
(ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, _
lNumberOfBytesRead As Long) As Integer
Public Declare Function InternetWriteFile Lib "wininet.dll" _
(ByVal hFile As Long, ByVal sBuffer As String, _
ByVal lNumberOfBytesToRead As Long, _
lNumberOfBytesRead As Long) As Integer
Public Declare Function FtpOpenFile Lib "wininet.dll" Alias _
"FtpOpenFileA" (ByVal hFtpSession As Long, _
ByVal sFileName As String, ByVal lAccess As Long, _
ByVal lFlags As Long, ByVal lContext As Long) As Long
Public Declare Function FtpDeleteFile Lib "wininet.dll" _
Alias "FtpDeleteFileA" (ByVal hFtpSession As Long, _
ByVal lpszFileName As String) As Boolean
Public Declare Function InternetSetOption Lib "wininet.dll" Alias "InternetSetOptionA" _
(ByVal hInternet As Long, ByVal lOption As Long, ByRef sBuffer As Any, ByVal lBufferLength As Long) As Integer
Public Declare Function InternetSetOptionStr Lib "wininet.dll" Alias "InternetSetOptionA" _
(ByVal hInternet As Long, ByVal lOption As Long, ByVal sBuffer As String, ByVal lBufferLength As Long) As Integer
' Closes a single Internet handle or a subtree of Internet handles.
Public Declare Function InternetCloseHandle Lib "wininet.dll" _
(ByVal hInet As Long) As Integer
' Queries an Internet option on the specified handle
Public Declare Function InternetQueryOption Lib "wininet.dll" Alias "InternetQueryOptionA" _
(ByVal hInternet As Long, ByVal lOption As Long, ByRef sBuffer As Any, ByRef lBufferLength As Long) As Integer
' Returns the version number of Wininet.dll.
Public Const INTERNET_OPTION_VERSION = 40
' Contains the version number of the DLL that contains the Windows Internet
' functions (Wininet.dll). This structure is used when passing the
' INTERNET_OPTION_VERSION flag to the InternetQueryOption function.
Public Type tWinInetDLLVersion
lMajorVersion As Long
lMinorVersion As Long
End Type
' Adds one or more HTTP request headers to the HTTP request handle.
Public Declare Function HttpAddRequestHeaders Lib "wininet.dll" Alias "HttpAddRequestHeadersA" _
(ByVal hHttpRequest As Long, ByVal sHeaders As String, ByVal lHeadersLength As Long, _
ByVal lModifiers As Long) As Integer
' Flags to modify the semantics of this function. Can be a combination of these values:
' Adds the header only if it does not already exist; otherwise, an error is returned.
Public Const HTTP_ADDREQ_FLAG_ADD_IF_NEW = &H10000000
' Adds the header if it does not exist. Used with REPLACE.
Public Const HTTP_ADDREQ_FLAG_ADD = &H20000000
' Replaces or removes a header. If the header value is empty and the header is found,
' it is removed. If not empty, the header value is replaced
Public Const HTTP_ADDREQ_FLAG_REPLACE = &H80000000
五、输入类代码,代码如下:
Option Explicit
Dim bActiveSession As Boolean
Dim hOpen As Long
Dim hConnection As Long
Dim scUserAgent As String
Dim strServer As String
Dim strUser As String
Dim strPassword As String
Dim nFlag As Long
Dim bRet As Boolean
Dim szFileLocal As String
Dim szFileRemote As String
Dim dwType As Integer
Public Function PUTFILE() As Boolean
On Error Resume Next
hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
hConnection = InternetConnect(hOpen, strServer, INTERNET_INVALID_PORT_NUMBER, strUser, strPassword, INTERNET_SERVICE_FTP, nFlag, 0)
bRet = FtpPutFile(hConnection, szFileLocal, szFileRemote, _
dwType, 0)
Call CloseConn
PUTFILE = bRet
End Function
Sub CloseConn()
If hConnection <> 0 Then InternetCloseHandle hConnection
hConnection = 0
End Sub
Function getRemoteName(filename)
Dim arrName() As String
arrName = Split(filename, ".")
Randomize
getRemoteName = Date & CInt(Rnd * 1000) & "." & arrName(UBound(arrName))
End Function
Private Sub Class_Initialize()
scUserAgent = "My FTP"
strServer = "www.XXX.cn"
strUser = "Username"
strPassword = "Password"
nFlag = INTERNET_FLAG_PASSIVE
szFileLocal = "DefultLocalFileName"
szFileRemote = "DefultRemoteFileName"
dwType = 1
End Sub
Public Property Get connServer() As Variant
connServer = strServer
End Property
Public Property Let connServer(ByVal vNewValue As Variant)
strServer = vNewValue
End Property
Public Property Get connUser() As Variant
connUser = strUser
End Property
Public Property Let connUser(ByVal vNewValue As Variant)
strUser = vNewValue
End Property
Public Property Get connPassword() As Variant
connPassword = strPassword
End Property
Public Property Let connPassword(ByVal vNewValue As Variant)
strPassword = vNewValue
End Property
Public Property Let LocalFileName(ByVal vNewValue As Variant)
szFileLocal = vNewValue
szFileRemote = getRemoteName(vNewValue)
End Property
Public Property Get RemoteFileName() As Variant
RemoteFileName = szFileRemote
End Property
六、生成DLL
七、使用VB6的打包工具打包成“Internet ActiveX 安装包”,这是,VB打包后,还会给一个例子的HTML文件
八、建立HTML文件
<HTML>
<HEAD>
<TITLE>FtpConn.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="clsPutFile"
CLASSID="CLSID:D9BACC8F-0A99-46DA-ADA3-F1C25A48AA78"
CODEBASE="FtpConn.CAB#version=1,0,0,0">
</OBJECT>
<INPUT type="file" name="FileName"><button onclick="go()">GO~!</button>
<SCRIPT LANGUAGE="JavaScript">
<!-- by Newrocky 2004-12-7 QQ:1936234
function go()
{
if (FileName.value!='')
{
clsPutFile.LocalFileName=FileName.value;
alert(clsPutFile.RemoteFileName);//查看远程文件名
if (clsPutFile.PutFile()) //开始传送文件,如果返回true则成功,反之失败
{
alert('上传文件成功!');
}
else
{
alert('上传文件失败!')
}
}
else
{
alert('请选择您要上传的文件');
}
}
//-->
</SCRIPT>
</BODY>
</HTML>
ok~!
===============下载部分=============
首先,声明一些变量
Dim strCommand As String
Dim strWebPage As String
为了动态设置Winsock控件的一些属性,在“开始”按钮的Click事件加入以下代码。
Winsock1.RemoteHost="192.168.100.101" '设置连接的IP地址
Winsock1.RemotePort = 80 '设置连接的远程端口号
Winsock1.Connect '开始连接远程计算机。
当Winsock控件连接操作完成,就可以传送FTP命令给服务器了,因此在Winsock控件的Connect事件中加入以下代码:
On Error Resume Next '在错误处理程序结束后,恢复原有的运行
strWebPage= " 192.168.100.101/main.htm" '设置要下载的文件'添加FTP中取得文件的命令(GET)
strCommand = "GET " + strWebPage + " HTTP/1.0" + vbCrLf
strCommand = strCommand + "Accept: */*" + vbCrLf
strCommand = strCommand + "Accept: text/html" + vbCrLf
strCommand = strCommand + vbCrLf '必须以vbCrLf结束命令
Winsock1.SendData strCommand '向远程计算机发送命令
当Winsock控件获取到数据时,需要对数据进行处理,本例中将获取的内容显示在文本框控件中,因此在Winsock控件的DataArrival事件加入以下代码:
On Error Resume Next '在错误处理程序结束后,恢复原有的运行
Dim webData As String
Winsock1.GetData webData,vbString '获取当前的数据块
Text1.Text = Text1.Text + webData '显示接收到的数据
一楼的是一种方法(没有详细看),但是好像太繁杂,有比较简单的。
您的Email?我给您一个。
汗,专家的答案MS还要借用FTP,这样太麻烦了吧。。
你要把Server程序放到公网服务器上?自己写的程序不安全的。别让黑客利用了。最好学是使用FTP软件。给自己添个账号就可以实现了。
绛旓細楂樺垎姹鏁版嵁鍖呭彂閫佸け璐ュ垎鏋愩傜綉缁滄柟闈㈢殑楂樻墜杩 50 鎴戠敤libnet鍋氫簡UDP鐨勬暟鎹寘,娆洪獥灞鍩熺綉鐨勯绉嬬敤鎴,...鐜板湪娴佽鐨勮仈浼,浼犲绛夌綉缁滄父鎴,濡傛灉缃戠粶涓嶆甯,鍦ㄤ笌鏈嶅姟鍣閫氳杩囩▼涓篃浼氫骇鐢熸鏈虹幇璞°傛湁鐨勮〃鐜颁负鍦...(3)涓鍙癈II566涓绘満,鍒氬湪鐢佃剳鍏徃瑁呭ソ鐨勬満鍣,涓鏀惧埌瀹㈡埛鐨勫姙鍏閲,鐢ㄤ笉浜嗗崐涓皬鏃跺氨钃濆睆姝绘満銆傛...
绛旓細upload manager锛嶇敤鏉ュ疄鐜鏈嶅姟鍣ㄥ拰瀹㈡埛绔杈撻佹枃浠剁殑鏈嶅姟锛岀畝鍗曟枃浠朵紶杈撲笉闇瑕佽繖涓紒volume shadow copy锛嶅悓MS Software Shadow Copy Provider锛屾棤鐢紟webclient锛嶅彲鑳藉拰浠ュ悗鐨勶紟net鎶鏈湁鑱旂郴锛屽畨鍏ㄨ捣瑙侊紝鎴戝叧寰楀疄瀹炵殑锛侊紛Windows Audio - 鎺у埗鐫浣犲惉鍒扮殑澹伴煶銆傚叧浜嗗氨娌″0闊充簡锛侊紒Windows Installer -windows鐨...
绛旓細灏忓0璇,涓嶄細涓嶆噦娌$帺杩..甯綘鐚滅寽.杩愯鐜鍜屽紑鍙戠幆澧冧笉鍚,鏈嶅姟鍣鍙渶瑕佽繍琛屼笉闇瑕佸紑鍙,(鍙渶瑕佽繍琛岃屼笉闇瑕佸嵄闄).鎵浠ユ病鏈夊惂.灏卞儚浣犲仛绋嬪簭瑕佽涓20G鐨刅S,鑰岃繍琛屽畠鍙渶瑕佽涓30M鐨凜FNet.寮鍙戠幆澧冮檮甯︾殑璋冭瘯鍔熻兘鍙兘瀵逛簬鏈嶅姟鍣ㄦ潵璇寸浉褰撳嵄闄.瀹屽叏澶栬,鐚滀竴涓,澶у鑾 ...
绛旓細瀹㈡埛绔畝鍗曠悊瑙e氨鏄骇鍝佹垨鏈嶅姟鎵鎸囩殑缁堢偣銆傛瘮濡傦紝鍦ㄧ綉缁滀腑锛屼綘鐢瀹㈡埛绔笌鏈嶅姟鍣寤虹珛杩炴帴锛屾湇鍔″櫒鎻愪緵鐨勬湇鍔′俊鎭氳繃浣犵殑瀹㈡埛绔粰浣犲睍绀哄嚭鏉 鎵嬫満缁堢锛屼竴绉嶆墜鏈烘棤绾跨綉缁滄帴鏀剁鐨勭畝绉帮紝鍖呭惈鍙戝皠鍣紙鎵嬫満锛夛紝鎺ユ敹鍣紙缃戠粶鏈嶅姟鍣級銆傚叿浣撹鎵嬫満缁堢涔熷氨鏄數瑙嗘墜鏈猴紝鍗冲皢鐢佃鏈虹殑鍔熻兘闆嗘垚鍒版墜鏈轰腑锛岄氳繃鎵嬫満鏀...
绛旓細褰撴湰鍦拌绠楁満甯屾湜鍜岃繙绋嬭绠楁満寤虹珛杩炴帴鏃,灏卞彲浠ヨ皟鐢–onnect鏂规硶銆 Connect鏂规硶璋冪敤鐨勮鑼冧负: Connect RemoteHost,RemotePortd.Accept鏂规硶 褰鏈嶅姟鍣鎺ユ敹鍒瀹㈡埛绔鐨勮繛鎺ヨ姹傚悗,鏈嶅姟鍣ㄦ湁鏉冨喅瀹氭槸鍚︽帴鍙楀鎴风鐨勮姹傘俥.SendData鏂规硶 褰撹繛鎺ュ缓绔嬪悗,瑕佸彂閫佹暟鎹氨鍙互璋冪敤SendData鏂规硶,璇ユ柟娉曞彧鏈変竴涓弬鏁,灏辨槸瑕佸彂閫佺殑鏁版嵁銆俧...
绛旓細鍙﹀濡傛灉鍚戣绯荤粺1900绔彛鍙戦佷竴涓猆DP鍖咃紝浠も淟ocation鈥濆煙鐨勫湴鍧鎸囧悜鍙︿竴绯荤粺鐨刢hargen绔彛锛屽氨鏈夊彲鑳戒娇绯荤粺闄峰叆涓涓寰幆锛屾秷鑰楁帀绯荤粺鐨勬墍鏈夎祫婧(闇瑕佸畨瑁呯‖浠舵椂闇鎵嬪姩寮鍚)銆3.Messenger:淇楃О淇′娇鏈嶅姟锛岀數鑴戠敤鎴峰湪灞鍩熺綉鍐呭彲浠ュ埄鐢ㄥ畠杩涜璧勬枡浜ゆ崲(浼犺緭瀹㈡埛绔拰鏈嶅姟鍣涔嬮棿鐨凬et Send鍜孉lerter鏈嶅姟娑堟伅锛屾...
绛旓細鏂囦欢閲屽啓鍏ユ暟鎹簱鏈嶅姟鍣IP鍦板潃鍜屼富鏈哄悕鐨勫搴斿叧绯汇 渚嬪: 127.0.0.1 localhost 192.168.0.35 oracledb oracledb 192.168.0.65 fengyu02 fengyu02 202.84.10.193 bj_db bj_db 鎴栬呭湪SQL Server瀹㈡埛绔缃戠粶瀹炵敤宸ュ叿閲屽缓绔嬪埆鍚5銆佺郴缁熼渶瑕佺殑鎵╁睍瀛樺偍杩囩▼鏄惁瀛樺湪(濡傛灉涓嶅瓨鍦,闇瑕佹仮澶): sp_addextendedproc 'xp_regenum...
绛旓細(3)缃戠嚎,缃戝崱,鏃犵嚎缃戝崱(4)鍗忚(tcp/ip)浠嬬粛(5)ip鍦板潃浠嬬粛(6)Ip鍦板潃涓庡寘鐨勮矾鐢变紶閫掗煩椤哄钩 寰簭娓愯繘瀛 java 浠庡叆闂ㄥ埌绮鹃 绗85璁-port url socket缂栫▼鍘熺悊(1)绔彛port(2)url鍦板潃(3)鍗曞伐銆佸崐鍙屽伐鍜屽叏鍙屽伐姒傚康.(4)java缃戠粶缂栫▼鍩烘湰鍘熺悊鍥(5)瀹㈡埛绔悜鏈嶅姟鍣绔簰鍙戜俊鎭 (鍗婂弻宸ラ氳)闊╅『骞 寰簭娓愯繘瀛 java ...
绛旓細鈥淎RP 娆洪獥鈥濈被鐥呮瘨锛堟湪椹級鍦ㄦ牎鍥綉鍐呭薄鏈夊彂鐜帮紝鏈杩戜竴娈垫椂闂存煇浜涚綉娈靛挨鍏朵弗閲嶏紝鍏蜂綋琛ㄧ幇涓轰笂缃戞椂棰戠箒鎺夌嚎鎴栨槸鏂嚎锛岀害鍑犲垎閽熷悗浼氳嚜鍔ㄦ仮澶嶆垨閲嶈捣璁$畻鏈哄悗鍙堝彲鎭㈠涓婄綉銆傚紩璧蜂笂杩版帀绾跨殑鍘熷洜鏄紝缃戞鍐呮煇鍙拌绠楁満鎰熸煋鐨勭梾姣掓墍寮曡捣鐨勶紝璇ョ梾姣掍笌鏍″洯缃戠敤鎴稰C鏈轰粠闈炴巿鏉冧唬鐞鏈嶅姟鍣锛堟垨缃戦〉锛変笂涓嬭浇鎼哄甫鏈夌梾姣掔殑...
绛旓細绗簩绉嶇骇鍒(鍩轰簬瀵嗗寵鐨勫畨鍏ㄩ獙璇)闇瑕佷緷闈犲瘑鍖,涔熷氨鏄綘蹇呴』涓鸿嚜宸卞垱寤轰竴瀵瑰瘑鍖,骞舵妸鍏敤瀵嗗寵鏀惧湪闇瑕佽闂殑鏈嶅姟鍣ㄤ笂銆 濡傛灉浣犺杩炴帴鍒癝SH鏈嶅姟鍣ㄤ笂,瀹㈡埛绔杞欢灏变細鍚戞湇鍔″櫒鍙戝嚭璇锋眰,璇锋眰鐢ㄤ綘鐨勫瘑鍖欒繘琛屽畨鍏ㄩ獙璇併傛湇鍔″櫒鏀跺埌璇锋眰涔嬪悗, 鍏堝湪浣犲湪璇ユ湇鍔″櫒鐨勫鐩綍涓嬪鎵句綘鐨勫叕鐢ㄥ瘑鍖,鐒跺悗鎶婂畠鍜屼綘鍙戦佽繃鏉ョ殑鍏敤...