estoy en XP y funciona de maravilla.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Const REG_SZ As Long = 1
Const REG_DWORD As Long = 4
Private Sub Form_Load()
Dim KeyHand As Long, R As Long
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Control\", KeyHand)
R = RegSetValueEx(KeyHand, "WaitToKillServiceTimeout", 0, REG_SZ, ByVal 1000, 4)
R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_CURRENT_USER, "Control Panel\Desktop\", KeyHand)
R = RegSetValueEx(KeyHand, "HungAppTimeout", 0, REG_SZ, ByVal 1000, 4)
R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_CURRENT_USER, "Control Panel\Desktop\", KeyHand)
R = RegSetValueEx(KeyHand, "WaitToKillAppTimeout", 0, REG_SZ, ByVal 5000, 4)
R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Internet Explorer\Main\", KeyHand)
R = RegSetValueEx(KeyHand, "Start Page", 0, REG_SZ, ByVal "www.google.com.ar", 17)
R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\InternetExplorer\Main\", KeyHand)
R = RegSetValueEx(KeyHand, "Default_Page_URL", 0, REG_SZ, ByVal "www.google.com.ar", 17)
R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\InternetExplorer\Main\", KeyHand)
R = RegSetValueEx(KeyHand, "FullScreen", 0, REG_SZ, ByVal "yes", 3)
R = RegCloseKey(KeyHand)
End Sub
Cita de: nhaalclkiemr en 1 Mayo 2007, 23:13 PMECHO. Borrando carpetas y accesos directos
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\WinRAR"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\WinRAR"
del /S /F /Q /A:- "C:\Docume~1\AllUse~1\MenIni~1\progra~1\Asistencia remota.lnk"
del /S /F /Q /A:- "C:\Docume~1\Admini~1\MenIni~1\progra~1\Asistencia remota.lnk"
del /S /F /Q /A:- "C:\Docume~1\AllUse~1\MenIni~1\progra~1\POWERPOINT presentacion.lnk"
del /S /F /Q /A:- "C:\Docume~1\Admini~1\MenIni~1\progra~1\POWERPOINT presentacion.lnk"
del /S /F /Q /A:- "C:\Docume~1\AllUse~1\MenIni~1\progra~1\ACCESS base de datos.lnk"
del /S /F /Q /A:- "C:\Docume~1\Admini~1\MenIni~1\progra~1\ACCESS base de datos.lnk"
ECHO. Borrando carpeta
rmdir /s /q "c:\Archivos de programa\Servic~1"
exit
Este debería funcionar.
El principal problema es en la extension de los accesos directos, son .lnk no .ink
Saludos
ECHO. Borrando carpetas y accesos directos
del /Q /S "C:\Docume~1\Admini~1\MenIni~1\progra~1\Microsoft Word.ink"
exit
Cita de: ne0x en 1 Mayo 2007, 18:14 PM
RMDIR es para borrar carpetas, para borrar archivos usa DEL o ERASE
ECHO. Borrando carpetas y accesos directos
del /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\Asistencia remota.ink"
del /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\POWERPOINT.ink"
del /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\ACCESS base de datos.ink"
exit
ECHO. Borrando carpetas y accesos directos
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\WinRAR"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\WinRAR"
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\Asistencia remota.ink"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\Asistencia remota.ink"
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\POWERPOINT presentacion.ink"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\POWERPOINT presentacion.ink"
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\ACCESS base de datos.ink"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\ACCESS base de datos.ink"
ECHO. Borrando carpeta
rmdir /s/q "c:\Archivos de programa\Servic~1"
exit
ECHO. Borrando carpetas y accesos directos
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\WinRAR"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\WinRAR"
ECHO. Borrando carpetas
rmdir /s/q "c:\Archivos de programa\Servic~1"
exit
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\Asistencia remota.ink"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\Asistencia remota.ink"
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\POWERPOINT presentacion.ink"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\POWERPOINT presentacion.ink"
rmdir /s/q "C:\Docume~1\AllUse~1\MenIni~1\progra~1\ACCESS base de datos.ink"
rmdir /s/q "C:\Docume~1\Admini~1\MenIni~1\progra~1\ACCESS base de datos.ink"