batch

  1. #1
    zerozone is offline Dedicated Member

    batch

    @echo off
    call :quiet>nul 2>&1
    goto :EOF
    :quiet
    :: Configure Wallpaper
    REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "%SystemRoot%\Coffee Bean.bmp"
    REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 0
    REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 2
    :: Configure the screen saver.

    :: Make the changes effective immediately
    %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters



    here a batch file, can anyone tell me why the c:\windows is %SystemRoot%\


    i want to change to a image at the directory to f:\

    i install my xp in my c:\


  2. #2
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    %systemroot% is the volume you are logged into. It is just a variable place holder as it were.

    If you are running XP in C: as usual then C: is %systemroot%.

    I am not certain but would guess you want to remove the first mention of %systemroot% and only specify F:.

    Presuming the .bmp is on F:. If not perhaps move it to F:.

  3. #3
    zerozone is offline Dedicated Member
    you saw the code up there is there anyway to change to it.

    is there any other folder that have those % thing

+ Reply to Thread