' Rename the My Computer Icon on the Local Computer
' supported on: Windows 2000, Windows XP, Windows Server 2003
Const MY_COMPUTER = &H11&
Set objNetwork = CreateObject("Wscript.Network")
objComput
' supported on: Windows 2000, Windows XP, Windows Server 2003
Const MY_COMPUTER = &H11&
Set objNetwork = CreateObject("Wscript.Network")
objComput
erName = objNetwork.ComputerName
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
objFolderItem.Name = objComputerName'"WARLOC410"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
objFolderItem.Name = objComputerName'"WARLOC410"
No comments:
Post a Comment