Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. To be honest, I wouldn't even bother with the batch, just paste the following into the Start > Run box and click OK cmd /c for /f %i in ('dir "%windir%\*.log" /b') do if %i neq windowsupdate.log del /q "%~fi"
  2. soulins Martins command is fine, the only possible changes I would make, even though they shouldn't matter as far as 'not working' is concerned is for /f %%i in ('dir "%windir%\*.log" /b') do if %%i neq windowsupdate.log echo del /q "%%~fi"<Edit> When you have verified the screen output, remove 'echo ' </Edit>
  3. @ ponghy He will likely get the same problem as with the cmd command, so it would be better to add the location of rundll32.exe @echo off if exist %systemroot%\system32\cmdow.exe cmdow @ /hid SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx SET RemTree=%systemroot%\system32\rundll32 advpack,DelNodeRunDLL32 REG ADD %KEY%\005 /VE /D "Removing Favorites" /f REG ADD %KEY%\005 /V 1 /D "%RemTree% \"%userprofile%\Favorites\Links\"" /f REG ADD %KEY%\005 /V 2 /D "%RemTree% \"%userprofile%\Favorites\Favorites\"" /f REG ADD %KEY%\999 /V 1 /D "%RemTree% %systemdrive%\drivers" /f<Edit> Edited to fix errors in ponghy's syntax and tidy up <Edit>
  4. Well it would have been a lot easier for you if you had just used a cmd file as in the guide REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
  5. @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\005 /VE /D "Removing Favorites" /f REG ADD %KEY%\005 /V 1 /D "%systemroot%\system32\cmd.exe /c rd /s/q \"%userprofile%\Favorites\Links\"" /f REG ADD %KEY%\005 /V 2 /D "%systemroot%\system32\cmd.exe /c rd /s/q \"%userprofile%\Favorites\Favorites\"" /f REG ADD %KEY%\999 /V 1 /D "%systemroot%\system32\cmd.exe /c rd /s/q %systemdrive%\drivers" /f<Edit> You could also replace %systemroot%\system32\cmd.exe with %comspec% </Edit>
  6. @ jbm It may have been a good idea to have let me know! If anyone is interested in the Bootable version only (latest incarnation), just download the one in that posting and replace the inf with the one below. BootISO.inf
  7. @ InnocentCriminal One free method rarely mentioned is Bart's Boot Image Extractor
  8. I understand where you are coming from, but since extensions are enabled by default in XP and 2k, there should be no need for me to add them in my command, it would be better for them to be at their default setting. However, the problem is more than likely as found in my later edit this morning. The user of the batch file was not executing it as I had assumed they would. <Edit> Here is another bit of code utilising ideas as highlighted by tbma above @echo off&setlocal enableextensions for /f "delims=" %%a in ('dir "%ProgramFiles%\ad-aware.exe" /b/s ^2^>nul') do ( if errorlevel 0 start "" /wait %%~sa /custom +archives +update +auto ) endlocal&goto :eofObviously the wait switch could be left out if not required too! </Edit>
  9. I have never used this GUI version of CDImage, so I could be very wrong, but from the ini file you posted the most obvious thing I would have expected to see would be the location of cdimage.exe at cdimageexe=
  10. RD is not a recognised command unless run from the command interpreter. @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\005 /VE /D "Removing Favorites" /f REG ADD %KEY%\005 /V 1 /D "cmd /c rd /s/q \"%userprofile%\Favorites\Links\"" /f REG ADD %KEY%\005 /V 2 /D "cmd /c rd /s/q \"%userprofile%\Favorites\Favorites\"" /f REG ADD %KEY%\999 /V 1 /D "cmd /c rd /s/q %systemdrive%\drivers" /f
  11. @TheeBeets This has been tested and confirmed working on forty seven different machines this morning. Those include Windows XP Home and Pro and Windows 2000. It's no good guessing, take a look here HKCU\Software\Microsoft\Command Processor look for a dword of 00000001 under the value EnableExtensions If the values dont exist either add them or ensure that they exist under HKLM\Software\Microsoft\Command Processor There is nothing special to the commands, It searches a directory listing of \Program Files for any line which ends in, (case insensitive), \Ad-Adware.exe if found an 8.3 filename version of the location is used. Since you clearly have a line ending with \Ad-Aware.exe in \Program Files directory the only obvious solution is regarding command extensions. If command extensions are enabled, what output are you getting? If you are getting none, change the first line to @echo on and let me know of anything pertinent from the screen output. <Edit> I have had another more obvious thought, are you just double clicking the cmd file? If you are then the file will run but not stay open for you to see the result. You will need to either 1. open the cmd prompt, navigate to the directory containing your cmd file and enter the name of the file, (extension not necessary) 2. Add a pause, so you can see the output, (Example) Test.cmd@echo off for /f "tokens=*" %%a in ('dir "%ProgramFiles%" /b/s^|findstr /i "\\ad-aware.exe$" ^2^>nul') do ( if errorlevel 0 echo start "" /wait %%~sa /custom +archives +update +auto ) pause&goto :eof LavaAd.cmd (after testing) @echo off for /f "tokens=*" %%a in ('dir "%ProgramFiles%" /b/s^|findstr /i "\\ad-aware.exe$" ^2^>nul') do ( if errorlevel 0 start "" /wait %%~sa /custom +archives +update +auto ) goto :eof </Edit>
  12. Is Ad-aware installed in the usual place, i.e. somewhere in \Program Files What OS /are command extensions enabled?
  13. Here is another way of doing the Ad-Aware @echo off for /f "tokens=*" %%a in ('dir "%ProgramFiles%" /b/s^|findstr /i "\\ad-aware.exe$" ^2^>nul') do ( if errorlevel 0 echo start "" /wait %%~sa /custom +archives +update +auto ) goto :eofThe above is merely an example to show you, anyone with Ad-Aware installed can test it. When you have verified from the output it works, just remove 'echo '
  14. If it is the Is that the AMD Athlon XP 2000+, it should be showing in the BIOS as 1.67 GHz 133 FSB 12.5 Multiplier
  15. Firstly, I would not recommend using XP Pro with less than 512 MB RAM. Secondly, what did it say in the BIOS settings?
  16. Other The best is not actually a Windows app - mkisofs+cdrecord For Windows, I would say Freeware: Burnatonce Paid For: ONES
  17. HKLM,Software\Classes\foobar2000.mp3\shell\enqueue,,,"Enqueue in foobar2000" HKLM,Software\Classes\foobar2000.mp3\shell\enqueue\command,,,"""%16422%\foobar2000\foobar2000.exe"" /add ""%1"""An inf doesn't use a backslash to escape the quotation mark, it uses another quotation mark, the special folders use what is known as DIRIDs, I have added the appropriate one for %ProgramFiles%, (%16422%) The only other changes I made were, I removed the quotation marks from your HKLM paths, this was personal preference, I like to use them only if the paths contain spaces. The final one, which is also a preference too is that a REG_SZ string is assumed so you can leave out the 0x00000000, (can also be just 0) Hope this helps
  18. Click on this and scroll right to the bottom of the page. Then look here to see if that helps.
  19. The important things are 'REGEDIT4' or 'Windows Registry Editor version 5.00', must be followed by a blank line. The file must end with a blank line Other than that, whatever makes it more readable for you.
  20. The chances are good that it would perform exactly the same. Incidentally, please make sure that there is a blank line at the end of the appended file.
  21. Just append the contents, (minus, the 'Windows Registry Editor Version 5.00'), of the 'new' reg to the end of the 'REGEDIT4' file then.
  22. @ blabla03 This thread is not for requests, the information provided in the first post is sufficient to get you started, all you need to do is search for the specific shortcut commands. As a one off, in the hope it helps tutorially here is what you need [Version] Signature = $Windows NT$ [DefaultInstall] UpdateInis = AdminLinx [AdminLinx] ;Task Manager setup.ini, progman.groups,, "group0=""%16400%\""" setup.ini, group0,,"""Task Manager"",""""""%11%\taskmgr.exe""""""" ;Disk Management setup.ini, progman.groups,, "group1=""%16400%\""" setup.ini, group1,,"""Disk Management"",""""""%11%\diskmgmt.msc"""" /s"",,,,""%HOMEDRIVE%%HOMEPATH%""" ;Performance setup.ini, progman.groups,, "group2=""%16400%\""" setup.ini, group2,,"Performance,""""""%11%\perfmon.msc"""" /s"",,,,""%HOMEDRIVE%%HOMEPATH%""" ;Management Infrastructure setup.ini, progman.groups,, "group3=""%16400%\""" setup.ini, group3,,"""Management Infrastructure"",""""""%11%\wmimgmt.msc"""" /s"",,,,""%HOMEDRIVE%%HOMEPATH%""" ;Device Manager setup.ini, progman.groups,, "group4=""%16400%\""" setup.ini, group4,,"""Device Manager"",""""""%11%\devmgmt.msc"""" /s"",,,,""%HOMEDRIVE%%HOMEPATH%""" ;Computer Management setup.ini, progman.groups,, "group5=""%16400%\""" setup.ini, group5,,"""Computer Management"",""""""%11%\compmgmt.msc"""" /s"",,,,""%HOMEDRIVE%%HOMEPATH%""" ;Users & Groups setup.ini, progman.groups,, "group6=""%16400%\""" setup.ini, group6,,"""Users & Groups"",""""""%11%\lusrmgr.msc"""" /s"",,,,""%HOMEDRIVE%%HOMEPATH%"""To test it copy & paste the contents of the code box into a new notepad file and Save As All Files adminlnk.inf, right click on adminlnk.inf and choose Install, now look on your Desktop. Note I will not be doing this again!
  23. No! REGEDIT4 is recognized in all versions including XP, the major difference between the two is that the Version 5.00 is in unicode format. Since the file you have will not be unicode there is no reason to alter it.
  24. Do a search or click on the next page of this forum, there are two current threads dealing with this exact subject
  25. Try /qn instead /qn : Displays no user interface. /qb : Displays a basic user interface.
×
×
  • Create New...