Untitled Document
̹ ð ð wsh ϰڽϴ.
Ȥ ǹ ϴٺ ƯŸ Ͽ txtϷ ftp ÷ ϴ°찡
...
˻Ʈ ϱ ü ̷۾ ûϴ.
Ÿ Ͽ 3ð ѹ Ʈ Ϸ ftp۽ִ°.
.. Ȥö ̷찡 ǷϽø ϼ...
(Ǹ ϴ Ϳ ڽ Ǹ ǽð ̳ Ÿ ־ִ ϰ?)
) ȸ Ʒ txt ftp ø.
) txtϸ
¥_ð.txt ̴
txt
entrydev
Ʈ
111111-11111
2004-11-11
ȣõ
122131-12313
2004-12-11
.
.
.
|
ϴ txt aspڵ غ곘ϴ..
createfile.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 |
<%
dim db
Set Db = Server.CreateObject("ADODB.CONNECTION")
Db.Open "Provider=SQLOLEDB.1;Password=pwd;User
ID=sa;Initial Catalog=db;Data Source=localhost"
SQLstring = "SELECT id, name, jumin, date FROM member"
Set rs=Server.CreateObject("ADODB.Recordset")
rs.Open SQLstring,db,1
filetmp = ""
do until rs.eof
filetmp = filetmp
& "" & rs("id") & chr(13) &
chr(10)
filetmp = filetmp
& "" & rs("name") & chr(13)
& chr(10)
filetmp = filetmp
& "" & rs("jumin") & chr(13)
& chr(10)
filetmp = filetmp
& "" & rs("date") & chr(13)
& chr(10)
rs.movenext
loop
rs.close : set rs = nothing
db.close : set db = nothing
myear = year(date())
mmonth = right("00"&month(date()),2)
mday = right("00"&day(date()),2)
mhour = right("00"&hour(time()),2)
mminute = right("00"&minute(time()),2)
msecond = right("00"&second(time()),2)
if filetmp <> "" then
Set fs = Server.CreateObject("Scripting.FileSystemObject")
filename = myear & mmonth
& mday & "_" & mhour & mminute & msecond &
".txt"
fs.CreateTextFile filename
Set objFile = fs.OpenTextFile(filename
,8)
objFile.writeLine(filetmp)
objFile.close
end if
%>
|
ڵ ø member̺ Ÿ ̾Ƽ ش ¥ txt ϴ ҽԴϴ.
? ^^ ڵ ص帱? ... Ư غ. .
1~24 : Ͽ filetmp û ĵ Էϴºκ. Ʈ غ?
27~32 : ϸ ؼ ¥ ð ̾ κԴϴ..
27~32 : right("00" & xxxx , 2) ̺κ
ı?
27~32 : day(date()) ø 1~9ϱ ڸ ڸ .
̰ ڸ ٲٱ
27~32 : 01, 02, 03 ̷ ڸ տ 0 ̴ ڵԴϴ
39~40 : ϴ ҽԴϴ.
42~44 : (42) filetmp ִ Է(43)ϴ κԴϴ.
..Ͻô dz? ^^;;;
txt ߴµ ̰ ftp ø?...
ڵ带 3ð ѹ ϰ txt ftpα ̿ؼ ڰ ϸ ø
븩Դϴ. ?...
vb ٸ ̿ؼ ϳ ǵ?.. ~~ ?. ¯¯ . ¯~!!!!!!!!!!!!!!!!!!!!!!!
Ƽ ΰ ϴ .. ftp .. â ؼ..
â Ű c:>ftp -? Էؼ ¦ ..
. .. Ӹ... ϱ.
.. κи .. -s ɼԴϴ (-aɼǵ κε.. Ǽ
)
ư ְڰ.. ߰߰ text file, commands, automatically, run, ftp starts ܾ
̳...
ؼϸ text file ִ ɾ ftp ؼ ڵ Ѵٴ ΰ ϴ ..
( ̿~~)
ftp ׳ ѹ ..
1 : ftp մϴ
2 : ftpּҸ Էմϴ. open 222.222.22.22(ip) 21(port) Դϴ.
3 : ftp Էմϴ.
4 : йȣ Էմϴ..
αߴٰ ?. ^^;;
5 : ϴ.. (close)
6 : ftp α մϴ (bye)
ּҴ ȵ˴ϴ .. Ȼ ϴ. ...
۾ Ʊ -s ɼ ̿ؼ ѹ غ곘ϴ.. غ~!
txt ϳ ϴ..
ftp_script.txt
open 218.145.68.1 802
isenu
pwd1
put uploadtest.txt
close
bye |
ftp
ip / Ʈ
ftp
йȣ
ε ( : put εϸ)
ftp |
txt ñ...
Ʈ ε uploadtest.txt ϳ ּ.
غ ϴ..
c:> ftp -s:ftp_script.txt
? txtϿ ִ dz?. ε尡 ƴ ftp ؼ Ȯ ..
ϱ غ ۾̿ϴ..
ð.. aspڵ Ʒ ftp ؼ 곘ϴ.
ġ ø. ˾Ƽ Ͻð? ..
׳ ٰ ʹ . źΰ. .. νð .. 곘ϴ.. ...
ź &亯 Ȱϼ...
|