korasoglu Posted December 25, 2012 Share Posted December 25, 2012 (edited) Arkadaşlar Dialog.FileBrowse ile seçilen dosyanın uzantısı ne ise ona göre işlem nasıl yaptırabilirim. Yani Txt ise Merhaba Fdf ise Selam gibi yeterli. Arkadaşlar saçma mı olur bilmiyorum ama web nesnesi Iexlorer Plugininin alternatifi varmı firefoxun açtığını ie açmıyorda. Edited December 25, 2012 by korasoglu Quote Link to comment Share on other sites More sharing options...
KintaRo Posted December 25, 2012 Share Posted December 25, 2012 tDosya = Dialog.FileBrowse(true, "Dosya Seçin", _DesktopFolder, "Tüm Dosyalar (*.*)|*.*|", "", "", false, true) -- dosya seç if tDosya[1] ~= "CANCEL" then -- eğer iptale basılmamışsa tSplit = String.SplitPath(tDosya[1]) -- dosyayı sürücü, klasor, dosyaadı ve uzantı olarak ayır if tSplit.Extension == ".txt" then -- eğer uzantı txt ise Dialog.Message("", "Bu bir Metin Belgesidir.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1) elseif tSplit.Extension == ".exe" then -- eğer dosya exe ise Dialog.Message("", "Bu bir Uygulama dosyasıdır..", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1) elseif tSplit.Extension == ".pdf" then -- eğer dosya pdf ise Dialog.Message("", "Bu bir PDF dosyasıdır..", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1) else -- eğer yukarıdaki seçeneklerden hiçbiri değilse Dialog.Message("", "Bu dosya uzantısı bilinmiyor.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1) end end Web nesnesi sorunlu bir nesne. IExplorer kullanmanızı öneririm. Quote Link to comment Share on other sites More sharing options...
korasoglu Posted December 26, 2012 Author Share Posted December 26, 2012 (edited) Teşekkür ederim kintaro geç vakitte olsa cevap yazmışsın herşey gönlünce olsun. Not : Hastalığa ilaç oldu Edited December 26, 2012 by korasoglu 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.