elegayye Posted September 30, 2012 Share Posted September 30, 2012 Merhaba arkadaşlar bir sorunum var işin içinden birtürlü çıkamadım şimdi butona tıklayınca filebrowse açılıyor ordan .exe dosyamı seçince inputa bulunduğu dizini yazdırıyor ben istiyorumki inputa bulunduğu dizin değilde dosyanın ismi çıksın yani C:\windows\dosya.exe değilde direk dosya.exe çıkmasını istiyorum inputa nasıl yapabilirim kodlar aşağıda saygılar.. filePath = Dialog.FileBrowse(true, "Hedef dosyayi sec", _DesktopFolder, "Exe dosyasi (*.exe)|*.exe|", "", "dat", false, false); if (filePath[1] ~= "CANCEL") then shortName = File.GetShortName(filePath[1]); Input.SetText("Input1", shortName); end Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted September 30, 2012 Share Posted September 30, 2012 [font=tahoma,geneva,sans-serif]Çok kolay ![/font] [CODE] filePath = Dialog.FileBrowse(true, "Hedef dosyayi sec", _DesktopFolder, "Exe dosyasi (*.exe)|*.exe|", "", "dat", false, false); if (filePath[1] ~= "CANCEL") then Split = String.SplitPath(filePath[1]); Input.SetText("Input1", Split.Filename..Split.Extension); -- sadece dosya adi icin Input.SetText("Input1", Split.Filename); end [/CODE] 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.