|
Mostrar Mensajes
|
Páginas: 1 2 3 4 [5] 6 7
|
43
|
Programación / Programación Visual Basic / como personalizar menu inicio?
|
en: 4 Abril 2009, 00:35 am
|
diseñe un programa parecido a la opciond e windows para personalizar el menu de inico
elimnar o motrar mi pc, panle de control, mis documentos, conexiones de red, etc
el tema es q los cambios se realizan despues de reiniciar la pc
queria saber como refrescar el menu inico para q aparezcan o desaparezcan las opciones que pongo, el de windows lo refresca cuando le damos en aplicar...
graciass!!
|
|
|
46
|
Programación / Programación Visual Basic / Re: como crear un punto de restauracion desde bv6?
|
en: 2 Abril 2009, 18:44 pm
|
el script anterior no me funciona
este si: Como lo puedo pasar a bv6???
If GetOS = "Windows XP" Then CreateSRP End If
If GetOS = "Windows Vista" Or GetOS = "Windows 7" Then If WScript.Argume nts.length =0 Then Set objShell = CreateObject("Shell.Applicat ion") objShell.ShellExecute "wscript.exe", """" & _ WScript.Script FullName & """" & " uac","", "runas", 1 Else CreateSRP End If End If
Sub CreateSRP Set SRP = getobject("winmgmts:\\.\root\default:Systemrestore") sDesc = "Manual Restore Point" sDesc = InputBox ("Enter a description.", "System Restore script : winhelponline. com","Manual Restore Point") If Trim(sDesc) <> "" Then sOut = SRP.createrest orepoint (sDesc, 0, 100) If sOut <> 0 Then WScript.echo "Error " & sOut & _ ": Unable to create Restore Point." End If End If End Sub
Function GetOS Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ ".\root\cimv2") Set colOS = objWMI.ExecQue ry("Select * from Win32_Operatin gSystem") For Each objOS in colOS If instr(objOS.Caption, "Windows 7") Then GetOS = "Windows 7" ElseIf instr(objOS.Caption, "Vista") Then GetOS = "Windows Vista" elseIf instr(objOS.Caption, "Windows XP") Then GetOS = "Windows XP" End If Next End Function
|
|
|
|
|
|
|