x_files_x Posted February 10, 2013 Share Posted February 10, 2013 Mrb arkadaşlar , benim yapmak istedigim şey diyeliki bir f: diskim var bu diski bir hotkeye atayarak diyrelimki ctrl+l ye bastıgımda unmount olsun yani sistemden kaldırılsın, sonra başka bi hotkey ile tekrar sisteme gelsin, burdaki mantık sanırım autoit ile sürücü harfini siliyor gibi ben tam bilmiyorum ama örnek icin Bluelife hocanın Blue mount programındaki mount/unmount ozelligini diorum, fikirlerinizi bekliyorum tşkler Quote Link to comment Share on other sites More sharing options...
gavara Posted February 10, 2013 Share Posted February 10, 2013 windows'ların normalde böyle bir uygulaması yok bildiğim kadarıyla. o yüzden yardımcı programlarla yapmanız gerekli diye düşünüyorum ! Quote Link to comment Share on other sites More sharing options...
x_files_x Posted February 10, 2013 Author Share Posted February 10, 2013 Autoit ile mümkün galiba, yapılabilir ama ben beceremedim Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted February 10, 2013 Share Posted February 10, 2013 Reg Kayıtlarıyla yapılabiliyor ve tabi ki autoitle yapılabilir hatta AMS ile yapılmışı bile var. Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted February 11, 2013 Share Posted February 11, 2013 https://sites.google.com/site/playletcodes/folder2drive Quote Link to comment Share on other sites More sharing options...
x_files_x Posted February 11, 2013 Author Share Posted February 11, 2013 nerdeki peki örnekleri simpson? Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted February 11, 2013 Share Posted February 11, 2013 (edited) Ufak bi arama yapsan bulabilirsin; http://www.tnctr.com/topic/204127-disk-drive-administrator-10-beta/ Burda reg kayıtları var. Auotile sürücüleri listelersin sonra kayıtları bir diziye atarak comboda belirtirsin secilen sürücüyü gizler veya gösterirsin işlem sonunda explorer i de bi refresh yaptın mı tadından yenmez.Ayıca her şeyin örneği de olmak zorunda değil sende yaz ki örneği olsun ;) // Aşağıdaki registry kodu Sürücü gizlemek için kullanılır. // çalışma şekli ise A-Z ye kadar her harf için dword analtılık sayısının // ikilik düzendeki kaşılığındaki her bit bir sürücüyü temsil ediyor // Bu anahtarları kontrol eden uygulama da yazılabilir ) [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=dword:00000001 // A sürücüsünü gizle 00001 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=- // Hepsini göster [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=dword:00000002 // B sürücüsünü gizle 00010 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=- [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=dword:00000004 // C sürücüsünü gizle 00100 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=- [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=dword:00000008 // D sürücüsünü gizle 01000 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=- [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=dword:00000010 // E sürücüsünü gizle 10000 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer] "NoDrives"=- Edited February 11, 2013 by SimpsoN_Bart Quote Link to comment Share on other sites More sharing options...
blue_life Posted February 11, 2013 Share Posted February 11, 2013 Anladığım kadarıyla sabit bir bilgisayarda bu işlemi gerçekleştirmek istiyorsun. Öncelikle sürücünün gerçek yolunu bulmalısın. Bunun için komut istemini aç ve moutvol yazıp entera bas. Karşına bir takım bilgiler gelecektir. Istediğin sürücünün yolunu/konumunu bulduktan sonra aşağıdaki değişkenleri düzeltirsin..Benim bilgisayarım için verdiğim örnek... Local $VolumePoint = "\\?\Volume{cfabc5ca-6bf0-11e2-aa02-005056c00008}\" Local $VolumeChar = "V:\" If FileExists($VolumePoint) = 0 Then MsgBox(16,$VolumeChar, "$VolumePoint değişkenindeki bilgi hatalı!") Exit EndIf _DeleteVolumeMountPoint($VolumeChar) MsgBox(64,$VolumeChar,"Sürücü çıkartıldı!") _SetVolumeMountPoint($VolumeChar,$VolumePoint) MsgBox(64,$VolumeChar,"Sürücü takıldı!") Func _DeleteVolumeMountPoint($lpszVolumeMountPoint) Local $ret = DllCall("kernel32.dll", "hwnd", "DeleteVolumeMountPointW", "wstr", $lpszVolumeMountPoint) If $ret[0] <> 0 Then Return 1 Else Return 0 EndIf EndFunc ;==>_DeleteVolumeMountPoint Func _SetVolumeMountPoint($lpszVolumeMountPoint, $lpszVolumeName) Local $ret = DllCall("kernel32.dll", "int", "SetVolumeMountPointW", "wstr", $lpszVolumeMountPoint, "wstr", $lpszVolumeName) Return $ret[0] EndFunc ;==>_SetVolumeMountPoint Quote Link to comment Share on other sites More sharing options...
x_files_x Posted February 11, 2013 Author Share Posted February 11, 2013 Bluelife hocam verdiginiz kodları düzenleyip calıstırdıgımda disk cıkartıldı takıldı diyor ama bişi olmuyor sadece uyarı geliyor Anladığım kadarıyla sabit bir bilgisayarda bu işlemi gerçekleştirmek istiyorsun. Öncelikle sürücünün gerçek yolunu bulmalısın. Bunun için komut istemini aç ve moutvol yazıp entera bas. Karşına bir takım bilgiler gelecektir. Istediğin sürücünün yolunu/konumunu bulduktan sonra aşağıdaki değişkenleri düzeltirsin.. Benim bilgisayarım için verdiğim örnek... Local $VolumePoint = "\\?\Volume{cfabc5ca-6bf0-11e2-aa02-005056c00008}\" Local $VolumeChar = "V:\" If FileExists($VolumePoint) = 0 Then MsgBox(16,$VolumeChar, "$VolumePoint değişkenindeki bilgi hatalı!") Exit EndIf _DeleteVolumeMountPoint($VolumeChar) MsgBox(64,$VolumeChar,"Sürücü çıkartıldı!") _SetVolumeMountPoint($VolumeChar,$VolumePoint) MsgBox(64,$VolumeChar,"Sürücü takıldı!") Func _DeleteVolumeMountPoint($lpszVolumeMountPoint) Local $ret = DllCall("kernel32.dll", "hwnd", "DeleteVolumeMountPointW", "wstr", $lpszVolumeMountPoint) If $ret[0] <> 0 Then Return 1 Else Return 0 EndIf EndFunc ;==>_DeleteVolumeMountPoint Func _SetVolumeMountPoint($lpszVolumeMountPoint, $lpszVolumeName) Local $ret = DllCall("kernel32.dll", "int", "SetVolumeMountPointW", "wstr", $lpszVolumeMountPoint, "wstr", $lpszVolumeName) Return $ret[0] EndFunc ;==>_SetVolumeMountPoint Hocam verdiginiz kodları düzenleyip calıstırdıgımda disk cıkartıldı filan diyor ama hic bi degisiklik olmuyor Quote Link to comment Share on other sites More sharing options...
blue_life Posted February 12, 2013 Share Posted February 12, 2013 @x_files_xHeralde Nt6 tabanlı bir sistem kullanıyorsun. Kısaca bu işlemler için yönetici yetkileri gerekir. Bunun için kodların başına #RequireAdmin komutunu ekle. Veyahut System32 de bulunan mountvol programı ilede istediğini yapabilirsin. Çalışmalarında başarılar dilerim kolay gelsin... #RequireAdmin Local $VolumePoint = "\\?\Volume{cfabc5ca-6bf0-11e2-aa02-005056c00008}\" Local $VolumeChar = "V:\" If FileExists($VolumePoint) = 0 Then MsgBox(16,$VolumeChar, "$VolumePoint değişkenindeki bilgi hatalı!") Exit EndIf _DeleteVolumeMountPoint($VolumeChar) MsgBox(64,$VolumeChar,"Sürücü çıkartıldı!") _SetVolumeMountPoint($VolumeChar,$VolumePoint) MsgBox(64,$VolumeChar,"Sürücü takıldı!") Func _DeleteVolumeMountPoint($lpszVolumeMountPoint) Local $ret = DllCall("kernel32.dll", "hwnd", "DeleteVolumeMountPointW", "wstr", $lpszVolumeMountPoint) If $ret[0] <> 0 Then Return 1 Else Return 0 EndIf EndFunc ;==>_DeleteVolumeMountPoint Func _SetVolumeMountPoint($lpszVolumeMountPoint, $lpszVolumeName) Local $ret = DllCall("kernel32.dll", "int", "SetVolumeMountPointW", "wstr", $lpszVolumeMountPoint, "wstr", $lpszVolumeName) Return $ret[0] EndFunc ;==>_SetVolumeMountPoint Quote Link to comment Share on other sites More sharing options...
x_files_x Posted February 12, 2013 Author Share Posted February 12, 2013 Çalıştı hocam çok tşk ederim :) NT6 nedir bilmiyorum ama windows 8 kullanıyorum hocam Quote Link to comment Share on other sites More sharing options...
blackman12 Posted February 14, 2013 Share Posted February 14, 2013 Windows Sürümün 6.x demek oluyor. Quote Link to comment Share on other sites More sharing options...
x_files_x Posted February 14, 2013 Author Share Posted February 14, 2013 Cevaplar için tşk ederim herkese, 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.