Skip to content
AutoHotKey
2011.02.04 23:27

[AUTOHOTKEY] FTP 제어

조회 수 25246 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부


FTP 제어 함수



#Include INet.ahk

server = 도메인
port = 포트번호 보통 21번을 씁니다.
User = 접속아이디
Pwd = 비밀번호

   INetOpen()
   hFTP := INetConnect(Server, Port, User, Pwd, "ftp")

   if(hFTP)
   {
      if(FtpPutFile(hFTP, "INet.ahk"))
         Msgbox 파일 업로드 성공
      else
         Msgbox 파일 업로드 오류 : %A_LastError%

      INetCloseHandle(hFTP)
   }
   INetClose()


함수로는

FtpCreateDirectory(hConnection, Directory) - 디렉토리 생성
FtpRemoveDirectory(hConnection, Directory) - 디렉토리 삭제
FtpSetCurrentDirectory(hConnection, Directory) - Sets the current working directory for a specified FTP session. 무슨말인지 모르겠네요;;
FtpGetCurrentDirectory(hConnection, ByRef Directory) - Gets the current working directory of a specified FTP session. 마찬가지-_-+
FtpPutFile(hConnection, LocalFile, RemoteFile="", TransferType="B") - 파일 업로드
FtpGetFile(hConnection, RemoteFile, LocalFile="", TransferType="B", OverWrite=0, LocalAttrib=0) - 파일 다운로드
FtpGetFileSize(hConnection, File, TransferType="B") - 파일사이즈 얻기
FtpRenameFile(hConnection, ExistingName, NewName) - 파일이름변경
FtpDeleteFile(hConnection, File) - 파일삭제














로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
837 AutoHotKey autohotkey와 autohotkey_l 의 인터넷 창 띄우기 비교예제 2 2011.02.11 17772
836 컴퓨터잡담 AVR 강좌 3 2012.07.07 4858
835 컴퓨터잡담 bat(배치) 파일 제대로 쓰기 2009.11.24 6874
834 컴퓨터잡담 bat(배치)파일 문법 3 2009.11.19 13294
833 컴퓨터잡담 bat(배치)파일 문법 3 2009.11.19 12460
832 컴퓨터잡담 blogapi 기능을 사용하여 xe 게시판으로 글쓰기 2012.11.20 7171
831 Visual C++ c 와 c++ 의 차이점 12 2010.12.05 22340
830 Visual C++ C# - Etrade API 11 file 2013.02.20 15596
829 Visual C++ C# - etrade api site 게시물 1 2013.02.20 32889
828 Visual C++ C#) 입문 - 프로젝트 생성하기 4 file 2013.02.12 18317
827 Visual C++ c++의 상식, 프로그램의 시작 15 2011.01.25 18835
826 컴퓨터잡담 CANON PRINTER ERROR CODE B203, B204 해결방법 2023.09.17 75306
825 HTMLPHPMSQL CCS 메뉴 스타일 링크 2021.08.04 3891
824 컴퓨터잡담 CCTV VIEWEASYV2 file 2019.05.31 4151
823 파이썬 chatGPT file 2023.02.11 4378
822 프로세스 CKAgent.exe npkcmsvc.exe nvsvc32.exe 1 2011.02.07 13217
821 AutoHotKey COM 사용 1 2011.02.21 19065
820 AutoHotKey com.ahk 1 2011.02.09 18260
819 AutoHotKey Com_invoke to login 2011.02.11 10712
818 컴퓨터잡담 CPU-Z file 2019.02.23 3904
Board Pagination Prev 1 ... 3 4 5 6 7 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소