hakanight Posted September 2, 2013 Share Posted September 2, 2013 Merhaba, Mesela uzantısı txt olan bir dosyamız var. O dosyayı benim yaptığım program ile birlikte aç yapınca o txt dosyasını okumasını istiyorum. Mesela hakan.txt diye bir dosyamız var. Ona sağ tıklayıp birlikte aç yaptık. Ve benim yaptığım programı seçtik. Benim yaptığım program o hakan.txt ile açıldığını nerden okuyacak? Yani onun içeriğini nasıl okuyacak. {Lütfen Fileread demeyin. Fileread ile okutulduğunu biliyorum fakat o birlikte açılan dosyanın dosyanın adını,konumunu nerden bulucam?} Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 2, 2013 Share Posted September 2, 2013 (edited) AutoIt kodları: If $cmdline[0] = 0 Then ; parametre ile açılmadıysa yap Exit EndIf $read = FileRead($cmdline[1]) ; parametredeki dosyayı oku MsgBox(0, "Abc Programı", $read) Reg Kayıtları Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.txt\shell] [HKEY_CLASSES_ROOT\.txt\shell\runas] @="Abc ile aç" [HKEY_CLASSES_ROOT\.txt\shell\runas\command] @="\"C:\\abc.exe\" \"%1\"" Edited September 2, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted September 2, 2013 Share Posted September 2, 2013 $CmdLine diye bir arrayda depolanıyor sanırsam gönderdiğin dosyalar ve komutlar. Bu konu size fazlasıyla yardımcı olacaktır. http://www.tnctr.com/topic/190031-command-line-kullanymy/ Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted September 2, 2013 Share Posted September 2, 2013 Ayrıca dosya türlerini programınızla bütünleştirmek için Dosya_Iliski() UDF'sini de kullanabilirsin. http://www.tnctr.com/topic/206273-dosya-iliski/ Quote Link to comment Share on other sites More sharing options...
hakanight Posted September 2, 2013 Author Share Posted September 2, 2013 Ayrıca dosya türlerini programınızla bütünleştirmek için Dosya_Iliski() UDF'sini de kullanabilirsin. http://www.tnctr.com/topic/206273-dosya-iliski/ İşte bu! Diğer aradığım cevaplardan! Hepsini teker teker regwrite yapmama gerek kalmadı! 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.