Jump to content

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


ali::12
 Share

Recommended Posts

Onu için HDDInfoDll dosyasını kullanman gerek.. :)

Onshow;
[quote]
function GetHDDInfo(sDRIVE)
sDRIVE=String.Replace(sDRIVE,":","",false)
sDRIVE=String.Replace(sDRIVE,"\\","",false)
tbDrives = Drive.Enumerate();
if tbDrives then
nHDDCount=0
for i,v in pairs(tbDrives) do
if Drive.GetType(v) == 3 then
cDRIVE=String.Replace(v,":\\","",false)
cDRIVE=String.Upper(cDRIVE)
if String.Upper(sDRIVE) == cDRIVE then
tbRet={}
tbRet.VendorModel = DLL.CallFunction("AutoPlay\\Docs\\HDDInfoDLL.dll", "GetHDDVendorModel", nHDDCount, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
tbRet.HardwareSerial = DLL.CallFunction("AutoPlay\\Docs\\HDDInfoDLL.dll", "GetHDDHardwareSerial", nHDDCount, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
tbRet.FirmwareVersion = DLL.CallFunction("AutoPlay\\Docs\\HDDInfoDLL.dll", "GetHDDFirmwareVersion", nHDDCount, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
nHDDCount=nHDDCount+1
end
end
end
else
tbRet = 0
end
return tbRet
end

tbHDD=GetHDDInfo(_SourceDrive)
Label.SetText("Label1", tbHDD.VendorModel)
Label.SetText("Label2", tbHDD.HardwareSerial)
[/quote]

Proje dosyası;

[quote]http://hotfile.com/dl/137668911/44b4072/hddmodel_serial_PLGETR.apz.html[/quote]

HDDInfoDll dosyası;

[quote]http://hotfile.com/dl/137668861/f60f78c/HDDInfoDLL.rar.html[/quote]

Link to comment
Share on other sites

teşekkür ederim ama bu kod sadece Sabit diskin bilgsini verdi
takılı olan flash belleğimin bilgisini vermedi

Ams de buton a yazılacak bir kod ile sürücüye direk format atmak için kod istemiştim
cevap gelmeyince uğraş sonucu buldum.

arkadaşlara lazım olur belki
Shell.Execute("C:\\Windows\\System32\\Format.com", "open", " G:\" /Y /V:Kamuran /Q /X", " ", SW_SHOWNORMAL, true)

Edited by kamuran731
Link to comment
Share on other sites

  • 1 yıl yıl...
  • Editor

[member=pairs] diye bir üyemiz var, kodları ondan isteyebilirsiniz :D

 

 

Ne pairsi :D.

result = File.Run("cmd.exe", "/C format E: /Q /X /V:TNCTR", _WindowsFolder.."\\System32", SW_HIDE, false);
Link to comment
Share on other sites

  • 7 ay sonra...

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.

2SXU3.png

:download1:
 

http://www.mediafire.com/?r3cnz5st6v4xi0d

KintaRo tekrar upload etme imkanın var mı? Lazım oldu bana da

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...