Jump to content

Ams Ile Sürücüye Format Atmak ?


ali::12
 Share

Recommended Posts

Arkadaşlar başlıktanda anlaşıldıgı gibi ben ams ile seçtiğim sürücüye format atmak istiyorum mesela flah belleğe format atacağım ms dos komutlarıyla yapılıyor fakat oradaki format komutu evetmi hayırmı diye doruyor o yüzden olmadı .
Link to comment
Share on other sites

[quote name='MeHMeTBeN' date='02 December 2011 - 13:06 ' timestamp='1322831187' post='1122734']
@ReaLyMaN
format f:
E H
bu komuttan sonra E yazıp enter yaparsan f diskine format atar H yazıp enter yaparsan iptal olur
[/quote]


Onu biliyorum fakat mesela ben ams de bilgisayara takılı sürücüleri listeleteceğim orada format atmak istediğim sürücüyü seçip biçimlendir dediğimde biçimlendirmesi lazım.
Yani bana evetmi hayırmı diye sormasın istiyorum.

Link to comment
Share on other sites

Bu iş için bir DLL var. Ona uygun olarak bir örnek hazırladım, ama şu an elimde boş bir sürücü olmadığı için deneme yapamadım, deneyip sonucu buraya yazarsınız.

[img]http://i.imgur.com/2SXU3.png[/img]

:download1:

[code]http://www.mediafire.com/?r3cnz5st6v4xi0d[/code]

Link to comment
Share on other sites

  • 2 hafta sonra ...

Yanlışın var bence pilgetir örnek koduna bak.


-- Get the type of the drive where the application is running from.
drive_type = Drive.GetType(_SourceDrive);

-- If the drive type is a CD/DVD ROM drive, eject it.
if (drive_type == DRIVE_CDROM) then
Drive.Eject(_SourceDrive);
end

Link to comment
Share on other sites

Ben inceledim birde sen incele istersen ?

Driver tipini al;
[quote]drive_type = Drive.GetType(_SourceDrive);[/quote]
Tipi alınan driver CDROM driverı ise CDROM'un kapağını aç
[quote]if (drive_type == DRIVE_CDROM) then
Drive.Eject(_SourceDrive);
end [/quote]

Link to comment
Share on other sites

[quote]yanlız bir sorun var sürücülei listelerken CD-ROM kart okuyucu v.s onlarıda listeliyor.
listeleme yaparken CD-ROM ve Kart okuyuları yok sayması için nasıl bir kod yazabiliriz ? [/quote]CD-ROM'u nasıl ekleriz demiyor nasıl [b]yoksayarız[/b] diyor

Link to comment
Share on other sites

ikinizede teşekkür ederim.
bu kod da ileride lazım olabilir. sürücünü cd-rom olup olmadığını kontrol ediyor.

ama sorunum bu değildi, sorunum CD-ROM ve Kart okuyucuları nasıl yoksayarız idi.
ayrıca sürücünün ismini veya markasını nasıl alabiliriz onun için kod varmı.
hani Aygıt yöneticisinde çıkan izim "sandisk cruzer blade"

Link to comment
Share on other sites

Şu anki sorunum;
sürücünün ismini veya markasını nasıl alabiliriz onun için kod varmı.
hani Aygıt yöneticisinde çıkan izim "sandisk cruzer blade" gibi

Sürücü yoksayma sorununu ise bu şekilde çözdüm.
ontimer evresine yazdığım şöyle bir kod ile halettim o sorunu

[code]
-- CD-ROM KONTROL
sDrive = ComboBox.GetSelected("ComboBox1")
sDrive = ComboBox.GetItemText("ComboBox1", sDrive)
drive_type = Drive.GetType(""..sDrive..""); [color="#FF0000"]-- tiplerini al [/color]
if (drive_type == DRIVE_CDROM) then [color="#FF0000"]-- Tipi alınan CDROM ise içinde CD-ROM yazılı olam resmi göster.[/color]
Image.SetVisible("Image_CDROMMU", true);
Image.Load("Image_CDROMMU", "AutoPlay\\Images\\CD_ROM.png");
else
Image.SetVisible("Image_CDROMMU", false); [color="#FF0000"]-- Cdrom değilse resmi gizle[/color]
end
---------
[/code]

Edited by kamuran731
Link to comment
Share on other sites

Alınan resimde CD-Rom Yazıyor cdrom oldugunu anlıyorum
Şu anki sorunum;
sürücünün türünü değil;
ismini veya markasını nasıl alabiliriz onun için kod varmı.
hani Aygıt yöneticisinde çıkan izim "sandisk cruzer blade" gibi

Edited by kamuran731
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...