Ehm, The vbscript and sample.cmd I gave didn't add anything, they only echoed some text along with the drive letter (e.g. C), no ":\\" at all anywhere. Any added would be from your code. Anyway try this cmdfile along with the vbsfile from my earlier post. This seeks the current places, and adds all drive letters as entries from the last existing entry it finds. That is, you already have "Place0"="G:\\" "Place1"="C:\\" "Place2"="C:\\Documents and Settings\\Administrator\\Desktop\\Wallpapers" "Place3"="C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures" So this would add from Place4 onwards for as many drives as you have (with Place4 being C:\ again ) I don't know how many PlaceS you want though, you already have 4 and AFAIK only 5 are valid. *shrug* REM Addplaces.cmd @echo off setlocal ENABLEDELAYEDEXPANSION set cnt=-2 for /f %%i in ('reg query HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar /s') do ( set /A cnt+=1 ) cscript //nologo drives.vbs>drives.list FOR /F %%i in (drives.list) do ( reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ComDlg32\PlacesBar /v Place!cnt! /d %%i:\ /f set /A cnt+=1 ) del drives.list