x_files_x Posted August 17, 2012 Share Posted August 17, 2012 Arkadaslar fileopen dialog ile sectigimiz dosyanın yolunu nasıl kesip kopyalayabiliriz, [code]$sec = FileOpenDialog("bir rar dosyası seç",@DesktopDir&"\","Uygulama (*.exe)",3)[/code] diyelim yol ; C:\Documents and Settings\user\Desktop\Deneme.exe ; burdaki sadece Deneme.exe yi nasıl alıcaz? Quote Link to comment Share on other sites More sharing options...
blue_life Posted August 17, 2012 Share Posted August 17, 2012 [codebox]Local $FileName, $FileEx, $JustFileName Local $FileLacation = FileOpenDialog("bir rar dosyası seç", @DesktopDir & "\", "Uygulama (*.exe)", 3);.exe If Not @error Then $FileName = StringTrimLeft($FileLacation, StringInStr($FileLacation, "\", 0, -1)) ;Ismi $FileEx = StringTrimLeft($FileName, StringInStr($FileName, ".", 0, -1) - 1) ;Uzantısı If $FileEx = $FileName Then $FileEx = "" $JustFileName = $FileName If $FileEx <> "" Then $JustFileName = StringTrimRight($FileName, StringLen($FileEx)) MsgBox(64, "", $FileLacation & @CRLF & $FileName & @CRLF & $JustFileName & @CRLF & $FileEx) EndIf[/codebox] Quote Link to comment Share on other sites More sharing options...
x_files_x Posted August 17, 2012 Author Share Posted August 17, 2012 Çok Sağolun @Blue_Life hocam Quote Link to comment Share on other sites More sharing options...
Mehmet Posted August 17, 2012 Share Posted August 17, 2012 (edited) Hazır FileOpenDialog konusu açılmışken bende şunu sormak istiyorum blue_life FileOpenDialog ile bir kısayolu seçtiğimizde kısayolun kopyası değilde kısayolun kendisi değişecek yani tam istediğim buna benzer bişey [code]FileOpenDialog("Kısayol seç", @DesktopDir & "\", "Kısayol (*.lnk)", 3) If Not @error Then FileCreateShortcut(@UserProfileDir & "\Local Settings\Application Data\Google\Chrome\Application\chrome.exe", @DesktopDir & "\Google Chrome.lnk", "", "www.google.com.tr", "İnternet'e gider", "", "^!G", 0, @SW_MINIMIZE) EndIf[/code] Edited August 17, 2012 by MeHMeTBeN Quote Link to comment Share on other sites More sharing options...
blue_life Posted August 17, 2012 Share Posted August 17, 2012 @MeHMeTBeN Yazdıklarını malesef tam olarak anlayamadım. Şimdi sen fileopendialog ile bir kısayolu seçtiğinde, tam olarak ne olmasını istiyorsun? Yani neye göre kısayolun kendisi değişeck. Örnekten bir şey anlamadım... 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.