Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


change drive name
 

 

'change drive name

Private Declare Function SetVolumeLabelA Lib "kernel32" _
(ByVal lpRootPathName As String, _
ByVal lpVolumeName As String) As Long

Public Function SetVolumeName(sDrive As String, n As String) As Boolean
Dim i As Long

i = SetVolumeLabelA(sDrive + ":\" & Chr$(0), n & Chr$(0))

SetVolumeName = IIf(i = 0, False, True)
End Function

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
factorial function(VB)
display information about a file(VB)
insert a picture into an image control(VB)
Create a file(C++)
background image(HTML)
Bubblesort routine(PHP)
plasma effect(Assembly)
write to a file using the filesystemobject(ASP)

    




Copyright © 2003 by programmershelp.co.uk