Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Di 31.03.09 13:59 
Hallo,

gibt es eine API (oder anderer Weg) um die VolumeID eines Datenträgers zu ändern?


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Di 31.03.2009 um 15:07
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 31.03.09 14:17 
Das geht AFAIK nur über direkte Manipulation des Laufwerks wie es hier beschrieben ist:
support.microsoft.co...27&x=16&y=15
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 31.03.09 14:19 
Was meinst Du? Die GUID, die Windows einem Laufwerk zuordnet, das Volume Label (Laufwerksbezeichnung), oder die Laufwerksseriennummer?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 31.03.09 14:22 
Ich bin davon ausgegangen, dass es um die VolumeID geht. :D
Da habe ich auch noch etwas dazu gefunden wie es das Tool von SysInternals macht:
blogs.technet.com/sy...99/04/14/452900.aspx
Der Blog ist alt, vielleicht gibt es auch was neueres dafür bei XP z.B.
Biarchiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Di 31.03.09 14:41 
Hallo,

meinste genau die Volume Label die der Dos-Befehl dir in der 2. Zeile anzeigt.
zB: FFFF-FFFF

Das beim formatieren glaub in den MBR/Boot-Sektor geschrieben wird.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 31.03.09 14:47 
user profile iconBiarchiv hat folgendes geschrieben Zum zitierten Posting springen:
Hallo,

meinste genau die Volume Label die der Dos-Befehl dir in der 2. Zeile anzeigt.

Also bei mir steht da "Volume Serial Number". Bitte einige dich, was Du meinst

user profile iconBiarchiv hat folgendes geschrieben Zum zitierten Posting springen:
zB: FFFF-FFFF

Das ist eine Volume Serial Number und nicht das Volume Label.

user profile iconBiarchiv hat folgendes geschrieben Zum zitierten Posting springen:
Das beim formatieren glaub in den MBR/Boot-Sektor geschrieben wird.

Wenn das im MBR geschrieben werden würde, wär das schlimm, weil's da nicht hingehört. Das ist Teil des Partitions-Kopfes und steht im ersten Sektor einer Partition. Wo das genau auftaucht, hängt vom Dateisystem der Partition ab. Das wiederum kann man aus der Partitionstabele lesen, die im MBR auftaucht (oder über die Windows-API auch einfach abfragen).

Näheres zum Aufbau der besagten Strukturen gibt's im Operating System Resosource Center.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.


Zuletzt bearbeitet von BenBE am Di 31.03.09 14:48, insgesamt 1-mal bearbeitet
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 31.03.09 14:47 
Die Seriennummer lässt sich so ändern:
www.codeproject.com/...change_drive_sn.aspx
Du musst das wie gesagt direkt auf das Laufwerk schreiben.