faqts : Computers : Programming : Languages : Tse : File

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

TSE: Drive: Volume: Set: How to: How to possible set the volume label of a drive?

Oct 4th, 2004 10:51
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 04 October 2004 - 07:45 pm --------------------

TSE: Drive: Volume: Set: How to: How to possible set the volume label 
of a drive?

---

--- cut here: begin --------------------------------------------------


 // library: drive: set: volume: label (filenamemacro=setdrvla.s) 
<author>Chris Antos</author> (you must put this procedure in the 
beginning of your program, and not add it to the 'FORWARD' functions 
and procedures in the top of your program) [kn, ri, tu, 21-09-2004 
04:03:55]

 DLL "<kernel32.dll>"

 INTEGER PROC PROCDriveSetVolumeLabel( STRING RootPathName:cstrval, 
STRING VolumeName:cstrval) : "SetVolumeLabelA"
  // e.g. PROC Main()
  // e.g.  PROCDriveSetVolumeLabel( "C:\", "DRIVE_C2" )
  // e.g. END
  // e.g.
  // e.g. <F12> Main()
 END

 PROC Main()
  PROCDriveSetVolumeLabel( "C:\", "DRIVE_C2" )
 END

--- cut here: end ----------------------------------------------------

---
---

Internet: see also:

---

TSE: Drive: Link: Overview: Can you give an overview of links about a 
drive?
http://www.faqts.com/knowledge_base/view.phtml/aid/31763/fid/896

----------------------------------------------------------------------