your one step ahead of me. thank you. "foxidrive"
ok you posted before me. np. i will make those changes will take some time. I catch myself in a lot of spelling mistakes. yes i use patch and batch wrong. thank you for pointing that out. "Salmon Trout"
i will repost this when i am done and after a test drive thank you.
Think if i talk about the rest of my code i might need to start another post.
I have been cleaning it up.
but just for the record. i get to a certain point all seems to stop no error code just what was last echoed. the log shows no error.
:: THIS IS RATHER LONG...
:: In a external usb hard drive I have a folder
:: I have windows 7 home. As owner admin I did a ver. in the cmd.exe, results were "Microsoft Windows [version 6.1.7601]"
::A picture that meets windows requirements in said folder
:: I am using "resource hacker [version 3.6.0.92] by angus johnson" in said folder
:: using the script provided "batchTee.bat" in said folder. thank you "foxidrive" i omitted reposting that file for you already posted it. there were no changes to name or content. a shorter post this way. feel like i am righting a book. smiles
================================================================
:: start me first.bat
logonwallpaper.bat | batchtee logfile.txt
================================================================
:: this worked well in my book like a breath of fresh air
:: just dont see the errors yet
================================================================
:: logonwallpaper.bat
@ECHO OFF
CLS
ECHO For windows 7 home
ECHO Warning: Can not just be administrator.
ECHO You need to exit and start this
ECHO file with owner administrator privileges.
ecHO The one you unhide and secured right?
ECHO You also need to start the patch file with
ECHO administrator privilages.
ECHO If you already have just countinue.
ECHO Thank You
echo.
ECHO Press ctrl and c to quit or
echo Press Anykey to continue
PAUSE > NUL
:MENU
CLS
ECHO ============= MENU NAME =============
ECHO -------------------------------------
ECHO 1. READ ME FIRST
ECHO -------------------------------------
ECHO 2. Set Logon Wallpaper
ECHO -------------------------------------
ECHO 3. test
ECHO -------------------------------------
ECHO 4. Selection 4
ECHO -------------------------------------
ECHO 5. Selection 5
ECHO -------------------------------------
ECHO 6. Selection 6
ECHO -------------------------------------
ECHO 7. Selection 7
ECHO -------------------------------------
ECHO 8. Selection 8
ECHO -------------------------------------
ECHO 9. Selection 9
ECHO -------------------------------------
ECHO ==========PRESS 'Q' TO QUIT==========
ECHO.
SET INPUT=
SET /P INPUT=Please select a number:
IF /I '%INPUT%'=='1' GOTO Selection1
IF /I '%INPUT%'=='2' GOTO Selection2
IF /I '%INPUT%'=='3' GOTO Selection3
IF /I '%INPUT%'=='4' GOTO Selection4
IF /I '%INPUT%'=='5' GOTO Selection5
IF /I '%INPUT%'=='6' GOTO Selection6
IF /I '%INPUT%'=='7' GOTO Selection7
IF /I '%INPUT%'=='8' GOTO Selection8
IF /I '%INPUT%'=='9' GOTO Selection9
IF /I '%INPUT%'=='0' GOTO Selection9
IF /I '%INPUT%'=='q' GOTO Quit
CLS
ECHO ============INVALID INPUT============
ECHO -------------------------------------
ECHO Please select a number from the Main
echo Menu [1-9] or select 'q' to quit.
ECHO -------------------------------------
ECHO ======PRESS ANY KEY TO CONTINUE======
PAUSE > NUL
GOTO MENU
:Selection1
cls
echo Ok this is to change your wallpaper on your login screen as if you were to do it manually.
echo Even though we are doing it in a patch file.
echo I am in the beginning stages of making this work. The reason I made the script the way I
echo did is to see and know what I am doing with it. I need to see the errors and know if there needs to be a change.
echo.
echo the script is full of pauses and you need to tap on the enter key once or twice to see the script move on
echo.
echo if you see a drive letter the just type "exit" and the script will continue.
echo.
echo it may ask if you are making a folder or a file i choose "file"
echo.
echo it needs some touch up so don't nock it for what it is. think if you had
echo to do it mannually in a batch file how would you do it.
echo.
echo also if you make any changes to these files please zip the folder back up and send it my way. thank you
echo
[email protected]echo.
echo thank you.
echo Press Any Key when done Reading!
echo.
PAUSE > NUL
Goto Menu
:Selection2
cls
echo processing
echo.
echo set UAC to disable
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
ECHO.
echo press anykey
PAUSE > NUL
cls
ECHO KILLING PROCESSES NEEDED FOR Modifying imageres.dll
@REM need to make this an if statement if process is running kill it other wise next
taskkill /f /IM explorer.exe
taskkill /f /IM rundll32.exe
taskkill /f /IM procexp64.exe
ECHO.
echo press anykey
PAUSE > NUL
cls
echo Take Ownership of imageres.dll
TAKEOWN /F %windir%\system32\imageres.dll
ICACLS %windir%\system32\imageres.dll /GRANT Administrator:F
SET __COMPAT_LAYER=WINXPSP3
ECHO.
echo press anykey
PAUSE > NUL
cls
echo Make back up of imageres.dll
xcopy %windir%\system32\imageres.dll "%windir%\system32\imageres.dll.old" /c /y /h | echo make backup copy attempted
ECHO.
echo press anykey
PAUSE > NUL
cls
echo Copy imagerers file to folder
copy %windir%\system32\imageres.dll %~dp0\ | echo attempted copy imageres file to this folder
ECHO.
echo press anykey
PAUSE > NUL
cls
Echo Delete imagers file in system folder
attrib -r -s -h "%windir%\system32\imageres.dll" | echo attrib changed attempted
del /q /f "%windir%\system32\imageres.dll" | echo imageres.ddl delete attempted in the system folder
ECHO.
echo press anykey
PAUSE > NUL
cls
echo step 6 overwrite image to file
echo [[[ this may take some time pending on you computor processing power]]]
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5031,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5032,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ..
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5033,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ...
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5034,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ....
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5035,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .....
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5036,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ......
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5037,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .......
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5038,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ........
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5039,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ........."25%"
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5040,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ..........
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5041,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ...........
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5042,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ............
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5043,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .............
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5044,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ..............
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5045,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ..............."50%"
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5046,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5047,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5048,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ..................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5049,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ...................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5050,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ...................."75%"
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5051,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .....................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5052,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ......................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5053,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo .......................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5054,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ........................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5055,
xcopy %~dp0\imageres1.dll %~dp0\imageres.dll /c /y /h
echo ........................
%~dp0\ResHacker.exe -addoverwrite %~dp0\imageres.dll, %~dp0\imageres1.dll, %~dp0\cat.jpg, image, 5056,
echo ........................."100%"
ECHO.
echo press anykey
PAUSE > NUL
cls
echo Copy modified imageres file back to systems folder
xcopy %~dp0\imageres.dll %windir%\system32\imageres.dll /c /y | echo copy attempt of imageres file back to system folder
ECHO.
echo press anykey
PAUSE > NUL
cls
echo Set Back Ownership of imageres.dll
@rem got to learn some day soon.
ECHO.
echo press anykey
PAUSE > NUL
cls
ECHO STARTING PROCESSES NEEDED FOR Modifying imageres.dll
@REM need to make this an if statement if process is not running start it other wise next. note it shouls start if was stopped really.
start /b explorer.exe
start /b rundll32.exe
start /b procexp64.exe
ECHO.
echo press anykey
PAUSE > NUL
cls
echo.
echo set UAC to enable
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
cls
ECHO.
echo Processing Ended
ECHO.
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection3
cls
echo test 2>&1 | echo tested
xcopy %~dp0\no.jpg %~dp0\ non.jpg 2<&1 test.log | echo tested
echo 3
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection4
cls
echo 4
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection5
cls
echo 5
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection6
cls
echo 6
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection7
cls
echo 7
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection8
cls
echo 8
echo press anykey
PAUSE > NUL
GOTO MENU
:Selection9
cls
echo 9
echo press anykey
PAUSE > NUL
GOTO MENU
:Quit
CLS
ECHO ==============THANKYOU===============
ECHO -------------------------------------
ECHO ======PRESS ANY KEY TO CONTINUE======
PAUSE>NUL
EXIT
===========================================================
:: logfile.txt
===========================================================
For windows 7 home
Warning: Can not just be administrator.
You need to exit and start this
file with owner administrator privileges.
The one you unhide and secured right?
You also need to start the patch file with
administrator privilages.
If you already have just countinue.
Thank You
Press ctrl and c to quit or
Press Anykey to continue
============= MENU NAME =============
-------------------------------------
1. READ ME FIRST
-------------------------------------
2. Set Logon Wallpaper
-------------------------------------
3. test
-------------------------------------
4. Selection 4
-------------------------------------
5. Selection 5
-------------------------------------
6. Selection 6
-------------------------------------
7. Selection 7
-------------------------------------
8. Selection 8
-------------------------------------
9. Selection 9
-------------------------------------
==========PRESS 'Q' TO QUIT==========
Please select a number: processing
set UAC to disable
The operation completed successfully.
press anykey
KILLING PROCESSES NEEDED FOR Modifying imageres.dll
SUCCESS: The process "explorer.exe" with PID 1584 has been terminated.
press anykey
Take Ownership of imageres.dll
SUCCESS: The file (or folder): "C:\Windows\system32\imageres.dll" now owned by user "snowballs01\a".
processed file: C:\Windows\system32\imageres.dll
Successfully processed 1 files; Failed processing 0 files
press anykey
Make back up of imageres.dll
make backup copy attempted
===========================================================
so far that what i got
in folder listed
folder --> imageres contants
folder --> old files
batchTea.bat
cat.jpg
logfile.txt
logonwallpaper.bat
ResHacker.exe
ResHacker.ini
ResHacker.log
start me first.bat
----------------------------------------------
hope i provided enough information. again thank you.