Jump to content

nakira

Member
  • Posts

    118
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Japan

Everything posted by nakira

  1. nakira

    MS Update

    Usually %WinDir%\SoftwareDistribution if i remember rightly. It may be easier to download them from http://v4.windowsupdate.microsoft.com/catalog/en/default.asp and install them.
  2. Change Path=C:\Program Files\CursorXP to Path=CursorXP No matter where %ProgramFiles% is located then.
  3. Have you tried using /silentmode switch?
  4. It's supposed to be in $OEM$\$$\System32\oobe\OOBEINFO.INI
  5. Microsoft Baseline Security Analyzer will tell you what you have installed and what you haven't.
  6. You don't really need to run the installer, make a rar sfx file from everything inside your program files\locate directory, add this comment. ;The comment below contains SFX script commands Path=Locate SavePath Silent=1 Overwrite=1 Shortcut=T, "%programFiles%\Locate\Locate32.exe /S", "", "Locate32 Autorun", "Locate32" Shortcut=P, "%ProgramFiles%\Locate\Locate32.exe", "Locate", "Locate32", "Locate32" Shortcut=P, "%ProgramFiles%\Locate\Updtdb32.exe", "Locate", "Updtdb32", "Updtdb32"
  7. Maybe this way @echo off cd /d f:\Uncompressing for /d %%i in (*) do ( pushd %%i for /f "delims=/" %%a in ('dir /s/b *.txt;*.htm;*.doc') do move "%%a" "%%~nxa" popd )
  8. system32 is defined in the %path% variable type "path" in a command prompt and you will see... PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys...(plus more).. If a program (or cmd file) isn't in the current directory when you try to execute it, Windows will search all the directories defined in %path% for that program. System32 happens to be the very first entry so Windows finds the cmdfile you placed there and executes it.
  9. Yes. This was ,eamt to appear to be a command prompt "D:\somefolder>7zcompress.cmd{enter}"
  10. Well, suppose you named it "7zcompress.cmd" and placed it into \system32, you would simply type "7zcompress.cmd" from the folder you want to compress. D:\somefolder>7zcompress.cmd{enter}
  11. Put that batchfile in a directory somewhere in the path (like \system32) and just call it from the folder you want compressed.
  12. Try this for /f %%j in ('dir /B %CDROM%\I386\SVCPACK\KB*.exe') do call :myprint %%~nj for /f %%j in ('dir /B %CDROM%\WINDOWSUPDATE\KB*.exe') do call :myprint %%~nj goto :eof :myprint (echo line%i%=%1 >> "%oeminfo%" && set /a i+=1) :eof
  13. The original is 'Windows Catalog.lnk' The icon is from %SystemRoot%\system32\moricons.dll Start in: %Homedrive%%Homepath% Comment: Find products made for Windows.
  14. Make a normal shortcut to IExplore.exe. Then add the url after the program name and you can add a comment and change icon.
  15. Don't call it "label.cmd", use a different name or it will keep calling itself.
  16. Put it into <XPCD>:\$OEM$\$$\System32\your.dll See here in the guide
  17. No go, that ends up like this "C:\Documents and Settings\Nakira\Desktop\Settings\Nakira" (run from desktop) or "C:\Settings\Nakira" (run from C:\)
  18. Fine this way @echo off&setlocal enableextensions enabledelayedexpansion for /f "tokens=*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /s^|findstr "S-1-5-"') do ( for /f "tokens=1,3 delims= " %%b in ('reg query "%%~a" /v "ProfileImagePath"') do ( if errorlevel 0 ( set userkey1="%%~c"&set userkey2="%%SystemDrive%%\%userprofile:*\=%" if !userkey1! equ !userkey2! set UserSID=%%a&goto next ) ) ) :next if not defined UserSID echo/ SID not found&&endlocal&goto :eof set UserKey=HKU\%UserSID:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\=% echo/ Your Users Registry Key %UserKey%&&echo/ is set as %%UserKey%% pause&endlocal&goto :eof
  19. Yeah Or more precisely "/convert="%UserProfile%\Local Settings\Application Data\Microsoft\Wallpaper1.bmp""
  20. NM However, that script produces "SID not found" fo rme too, and that's the only reason I can thik of...
  21. I may be wrong here but in this line... if errorlevel 0 if "%%~c" equ "%UserProfile%" set UserSID=%%a The two STRINGS are not equal (for me) "%%~c" expands to "%SystemDrive%\Documents and Settings\Nakira" "%UserProfile%" expands to "C:\Documents and Settings\Nakira"
  22. You might try asking in the Zonelabs forum
  23. Here's a batch script that will change wallpaper. reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "F:\Wallpaper\mickey_mouse.bmp" /f rundll32.exe User32.dll,UpdatePerUserSystemParameters The limitaion is this will only accept .bmp files, although you could use Irfanview to convert on the fly. "C:\Program Files\IrfanView\i_view32.exe" "F:\Wallpaper\Felix.jpg" /convert="F:\Wallpaper\Felix.bmp" reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "F:\Wallpaper\Felix.bmp" /f rundll32.exe User32.dll,UpdatePerUserSystemParameters To save having many files converted to bmp, re-use the same name (no need to alter the registry this time) "C:\Program Files\IrfanView\i_view32.exe" "F:\Wallpaper\Betty.png" /convert="F:\Wallpaper\Current.bmp" rundll32.exe User32.dll,UpdatePerUserSystemParameters Remeber to change all the paths to suit
  24. Ah, I thought you meant RAR for Dos when you mentioned "the command line utility". The 'guide' I use is WinRAR.hlp. WinRAR Help > Contents >> Command line mode >> Commands >> "C" Add an archive comment b) Comments may be added from a file by using the -z<file> switch. WinRAR c -zinfo.txt dummy You can also use rar /? from commandline.
  25. The rar commandline tool is named rar32.exe, so I'm assuming you have renamed it. rar c -zcomment.txt folder\existingarchive.exe
×
×
  • Create New...