FTP上传失败(另一个程序正在使用此文件,进程无法访问) 100
我想做到的是,如何用Excel打开文件的同时还可以上传?如果文件被Excel打开的话,就不能上传,提示:另一个程序正在使用此文件,进程无法访问log:[2]Thu27Ma...
我想做到的是,如何用Excel打开文件的同时还可以上传?
如果文件被Excel打开的话,就不能上传,提示:另一个程序正在使用此文件,进程无法访问
log:
[2] Thu 27May10 10:23:06 - (001541) noop
[6] Thu 27May10 10:23:06 - (001541) 200 Command okay.
[2] Thu 27May10 10:23:06 - (001541) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001541) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:23:06 - (001541) noop
[6] Thu 27May10 10:23:06 - (001541) 200 Command okay.
[2] Thu 27May10 10:23:06 - (001541) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001541) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:23:06 - (001541) TYPE A
[6] Thu 27May10 10:23:06 - (001541) 200 Type set to A.
[2] Thu 27May10 10:23:06 - (001541) PASV
[6] Thu 27May10 10:23:06 - (001541) 227 Entering Passive Mode (192,168,5,66,9,224)
[2] Thu 27May10 10:23:06 - (001541) LIST
[6] Thu 27May10 10:23:06 - (001541) 150 Opening ASCII mode data connection for /bin/ls.
[6] Thu 27May10 10:23:06 - (001541) 226 Transfer complete.
[2] Thu 27May10 10:23:06 - (001541) noop
[6] Thu 27May10 10:23:06 - (001541) 200 Command okay.
[2] Thu 27May10 10:23:06 - (001541) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001541) 250 Directory changed to /WH9/DataIn
[5] Thu 27May10 10:23:06 - (001542) Connected to 192.168.5.130 (Local address 192.168.5.66)
[6] Thu 27May10 10:23:06 - (001542) 220 Serv-U FTP Server v6.4 for WinSock ready...
[5] Thu 27May10 10:23:06 - (001542) IP-Name: TEST20081223
[2] Thu 27May10 10:23:06 - (001542) USER idxsz
[6] Thu 27May10 10:23:06 - (001542) 331 User name okay, need password.
[2] Thu 27May10 10:23:06 - (001542) PASS xxxxx
[5] Thu 27May10 10:23:06 - (001542) User IDXSZ logged in
[6] Thu 27May10 10:23:06 - (001542) 230 User logged in, proceed.
[2] Thu 27May10 10:23:06 - (001542) opts utf8 on
[6] Thu 27May10 10:23:06 - (001542) 501 Invalid option.
[2] Thu 27May10 10:23:06 - (001542) PWD
[6] Thu 27May10 10:23:06 - (001542) 257 "/" is current directory.
[2] Thu 27May10 10:23:06 - (001542) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001542) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:23:06 - (001542) DELE orders.sql
[6] Thu 27May10 10:23:06 - (001542) 550 /WH9/DataIn/orders.sql: No such file or directory.
如果用TXT打开这个文件的时候就可以上传.
log:
[2] Thu 27May10 10:25:03 - (001541) noop
[6] Thu 27May10 10:25:03 - (001541) 200 Command okay.
[2] Thu 27May10 10:25:03 - (001541) CWD /WH9/DataIn/
....
前面一样,文字查过数量略掉
....
[6] Thu 27May10 10:25:03 - (001541) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:25:03 - (001541) TYPE I
[6] Thu 27May10 10:25:03 - (001541) 200 Type set to I.
[2] Thu 27May10 10:25:03 - (001541) PASV
[6] Thu 27May10 10:25:03 - (001541) 227 Entering Passive Mode (192,168,5,66,10,35)
[2] Thu 27May10 10:25:03 - (001541) STOR orders.sql
[4] Thu 27May10 10:25:03 - (001541) Receiving file d:\idx30\idxdata\wh9\datain\orders.sql
[6] Thu 27May10 10:25:03 - (001541) 150 Opening BINARY mode data connection for orders.sql.
[4] Thu 27May10 10:25:03 - (001541) Received file d:\idx30\idxdata\wh9\datain\orders.sql successfully (739 kB/sec - 7568 Bytes)
[6] Thu 27May10 10:25:03 - (001541) 226 Transfer complete.
不懂FTP的别回答,日志都写出来了. 展开
如果文件被Excel打开的话,就不能上传,提示:另一个程序正在使用此文件,进程无法访问
log:
[2] Thu 27May10 10:23:06 - (001541) noop
[6] Thu 27May10 10:23:06 - (001541) 200 Command okay.
[2] Thu 27May10 10:23:06 - (001541) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001541) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:23:06 - (001541) noop
[6] Thu 27May10 10:23:06 - (001541) 200 Command okay.
[2] Thu 27May10 10:23:06 - (001541) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001541) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:23:06 - (001541) TYPE A
[6] Thu 27May10 10:23:06 - (001541) 200 Type set to A.
[2] Thu 27May10 10:23:06 - (001541) PASV
[6] Thu 27May10 10:23:06 - (001541) 227 Entering Passive Mode (192,168,5,66,9,224)
[2] Thu 27May10 10:23:06 - (001541) LIST
[6] Thu 27May10 10:23:06 - (001541) 150 Opening ASCII mode data connection for /bin/ls.
[6] Thu 27May10 10:23:06 - (001541) 226 Transfer complete.
[2] Thu 27May10 10:23:06 - (001541) noop
[6] Thu 27May10 10:23:06 - (001541) 200 Command okay.
[2] Thu 27May10 10:23:06 - (001541) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001541) 250 Directory changed to /WH9/DataIn
[5] Thu 27May10 10:23:06 - (001542) Connected to 192.168.5.130 (Local address 192.168.5.66)
[6] Thu 27May10 10:23:06 - (001542) 220 Serv-U FTP Server v6.4 for WinSock ready...
[5] Thu 27May10 10:23:06 - (001542) IP-Name: TEST20081223
[2] Thu 27May10 10:23:06 - (001542) USER idxsz
[6] Thu 27May10 10:23:06 - (001542) 331 User name okay, need password.
[2] Thu 27May10 10:23:06 - (001542) PASS xxxxx
[5] Thu 27May10 10:23:06 - (001542) User IDXSZ logged in
[6] Thu 27May10 10:23:06 - (001542) 230 User logged in, proceed.
[2] Thu 27May10 10:23:06 - (001542) opts utf8 on
[6] Thu 27May10 10:23:06 - (001542) 501 Invalid option.
[2] Thu 27May10 10:23:06 - (001542) PWD
[6] Thu 27May10 10:23:06 - (001542) 257 "/" is current directory.
[2] Thu 27May10 10:23:06 - (001542) CWD /WH9/DataIn/
[6] Thu 27May10 10:23:06 - (001542) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:23:06 - (001542) DELE orders.sql
[6] Thu 27May10 10:23:06 - (001542) 550 /WH9/DataIn/orders.sql: No such file or directory.
如果用TXT打开这个文件的时候就可以上传.
log:
[2] Thu 27May10 10:25:03 - (001541) noop
[6] Thu 27May10 10:25:03 - (001541) 200 Command okay.
[2] Thu 27May10 10:25:03 - (001541) CWD /WH9/DataIn/
....
前面一样,文字查过数量略掉
....
[6] Thu 27May10 10:25:03 - (001541) 250 Directory changed to /WH9/DataIn
[2] Thu 27May10 10:25:03 - (001541) TYPE I
[6] Thu 27May10 10:25:03 - (001541) 200 Type set to I.
[2] Thu 27May10 10:25:03 - (001541) PASV
[6] Thu 27May10 10:25:03 - (001541) 227 Entering Passive Mode (192,168,5,66,10,35)
[2] Thu 27May10 10:25:03 - (001541) STOR orders.sql
[4] Thu 27May10 10:25:03 - (001541) Receiving file d:\idx30\idxdata\wh9\datain\orders.sql
[6] Thu 27May10 10:25:03 - (001541) 150 Opening BINARY mode data connection for orders.sql.
[4] Thu 27May10 10:25:03 - (001541) Received file d:\idx30\idxdata\wh9\datain\orders.sql successfully (739 kB/sec - 7568 Bytes)
[6] Thu 27May10 10:25:03 - (001541) 226 Transfer complete.
不懂FTP的别回答,日志都写出来了. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询