Jump to content

Projenin Bir Dosyasını Bir Yere Kaydetme


pcusta_99
 Share

Recommended Posts

Arkadaşlar ben INPUT kullanmadan bu kodlarla sadece gözat yeri olup tamam deyince kaydetsin diye kodları bir butona böyle yaptım.

[code]sAl = Dialog.FolderBrowse("Select Folder", _SourceFolder .. "\\AutoPlay");

StatusDlg.Show(MB_ICONINFORMATION, false);
File.Copy(_SourceFolder.."\\AutoPlay\\Docs\\belge.doc",sAL, true, true, false, true, nil);
StatusDlg.Hide();[/code]

Ama olmuyor.

Edited by pcusta_99
Link to comment
Share on other sites

o zaman ınputun özelliklerinden visiple tikini kaldırırsan önizlemede gözükmez :D

Veya Globale

[quote]function yol()
sAl = Dialog.FolderBrowse("Select Folder", _SourceFolder .. "\\AutoPlay");
end

function kopyala()
StatusDlg.Show(MB_ICONINFORMATION, false);
File.Copy(_SourceFolder.."\\AutoPlay\\Docs\\belge.doc",sAl, true, true, false, true, nil);
StatusDlg.Hide();
end[/quote]

Yazıp Gözat butonuna yol() kopyala butonuna kopyala() yazabilirsin

Edited by ReaLyMaN
Link to comment
Share on other sites

Buttonla uğraşmasan kaydet butonuna direkt bunu yazsan olmaz mı?

[quote]sAl = Dialog.FolderBrowse("Select Folder",_DesktopFolder);
StatusDlg.Show(MB_ICONINFORMATION, false);
File.Copy(_SourceFolder.."\\AutoPlay\\Docs\\belge.doc",sAl, true, true, false, true, nil);
StatusDlg.Hide();[/quote]

Edited by ReaLyMaN
Link to comment
Share on other sites

[code]folder = Dialog.FolderBrowse("Please select a folder:", _DesktopFolder);
StatusDlg.Show(MB_ICONNONE, false);
File.Copy("AutoPlay\\Docs\\belde.doc", folder, true, true, false, true, nil);
error = Application.GetLastError();
StatusDlg.Hide();
if error == 0 then
Dialog.Message("Bilgi", "Başarılı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);end[/code]

Link to comment
Share on other sites

[quote name='ReaLyMaN' date='12 November 2011 - 17:51 ' timestamp='1321113087' post='1110834']
Buttonla uğraşmasan kaydet butonuna direkt bunu yazsan olmaz mı?

[quote]sAl = Dialog.FolderBrowse("Select Folder",_DesktopFolder);
StatusDlg.Show(MB_ICONINFORMATION, false);
File.Copy(_SourceFolder.."\\AutoPlay\\Docs\\belge.doc",sAl, true, true, false, true, nil);
StatusDlg.Hide();[/quote]
[/quote]

Benim de istediğim buydu. Yardımları için Realyman arkadaşıma teşekkürler. (Teşekkür butonunu kullandım ve ayrıca burdan da teşekkür etmek istedim.)


[quote name='xarax' date='12 November 2011 - 17:53 ' timestamp='1321113183' post='1110836']
[code]folder = Dialog.FolderBrowse("Please select a folder:", _DesktopFolder);
StatusDlg.Show(MB_ICONNONE, false);
File.Copy("AutoPlay\\Docs\\belde.doc", folder, true, true, false, true, nil);
error = Application.GetLastError();
StatusDlg.Hide();
if error == 0 then
Dialog.Message("Bilgi", "Başarılı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);end[/code]
[/quote]


Bu kod için de teşekkürler...

Edited by pcusta_99
Link to comment
Share on other sites

Bir de bunu sonuna ekleyebilirsin

[quote]error = Application.GetLastError();

StatusDlg.Hide();

if error == 0 then

Dialog.Message("Bilgi", "Başarılı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
Dialog.Message("Hata", "Kaydetme Başarısız !", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
[/quote]

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...