220mitGedik Posted June 16, 2013 Share Posted June 16, 2013 Arkadaşlar temp klasöründeki ini dosyasını nasıl ftp ye upload ederim ? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 16, 2013 Editor Share Posted June 16, 2013 FTP.ChangeDir("/uploads");--upload edilecek klasöre geçiyoruz. err = Application.GetLastError();--hata kontrolü yapıyoruz if err ~= FTP.OK then--eğer hata varsa Dialog.Message("Error", _tblErrorMessages[err]);--hata mesajını göster diyoruz end StatusDlg.ShowCancelButton();--status dialog ile upload ediyoruz.Maksat bilgi sahibi olalım ne kadar up edildi --status dlg nin cancel butonunu iptal ediyoruz ki yüklerken iptal edilmme olmasın. StatusDlg.Show();--status dlg yi göster diyoruz. FTP.Upload(_TempFolder.."\\a.txt", "myfile.txt");--temp dizinini yanlış yamış olbilirim.Tempdeki a.txt yi yukarıda belirttiğimiz uploads --klasörüne myfile.txt olarak aktar err = Application.GetLastError();--hata kontrolü yapıyoruz StatusDlg.Hide();--status dlg yi kapatıyoruz. if err == FTP.OK then--eğer hata yoksa Dialog.Message("Success!", "myfile.txt was uploaded successfully!");--upload edildiğine dair mesaj ver. else Dialog.Message("Error", _tblErrorMessages[err]);--hata mesajını göster. end Quote Link to comment Share on other sites More sharing options...
220mitGedik Posted June 16, 2013 Author Share Posted June 16, 2013 sağol Hocam bide sadece ftp connect kaldı dimi o nuda ben yaparım Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 16, 2013 Editor Share Posted June 16, 2013 Tabi öncelikle ftp connect yapman lazımki diğer komutlar çalışsın. Quote Link to comment Share on other sites More sharing options...
220mitGedik Posted June 16, 2013 Author Share Posted June 16, 2013 Not : Dosya ile değiştimek için Şu kod da lazım FTP.ChangeDir("/uploads") -- Klasör belirler FTP.Delete("gncl.init");-Dosyayı siler Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.