Visual basic projenize 1 Adet Command Buton Açmanız Yeterli bu kodları içine kopyalayabilirsiniz.
Private Sub Command1_Click()
Set Reg = CreateObject("Wscript.Shell")
Reg.RegWrite "HKEY_CLASSES_ROOT\.abc\", ("DENE")
'Set Reg = CreateObject("Wscript.Shell")
Reg.RegWrite "HKEY_CLASSES_ROOT\DENE\DefaultIcon\", "c:\1.exe" ' icon Dosyanız
'Set Reg = CreateObject("Wscript.Shell")
Reg.RegWrite "HKEY_CLASSES_ROOT\DENE\Shell\Open\Command\", "1.exe" ' çalıştırılacak program
End Sub
.abc Dosyalarını Windowsunuz artık 1.exe programınızla çalsıtıracaktır.
basit bir dongu...
Uzantı'yı Programınıza Entegre Edin (*.abc)
5
●639
- 16-06-2009, 02:14:26daha sonra
Visual basic ile yardımcı kodunu veriyim
Açmak istediğiniz txt tarzı dosyalar ise
'FSO ile Belgeleri okutma kodunu kullana bilirsiniz.
'resim ise loadpicture(picture1.picture,veri) seklinde yapabilirsiniz.
sub from_load()
Dim Veri As String
veri = command$
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
Set oTextStream = oFS.OpenTextFile(veri,1)
text1.text = oTextStream.ReadAll
end sub
