May 31, 200818 yr cd %ALLUSERSPROFILE%cd..for /D /R %%i in (7z*.tmp) do rmdir /S /Q %%ihere's my batch file for deleting all temp directories in "Documents and Settings" folder and all subfoldersThe thing is that the linefor /D /R %%i in (7z*.tmp) do rmdir /S /Q %%idoesn't execute from "C:\Documents and Settings" folderIt executes from whete my batch file is!!!So the whole script is useless.Any suggestions??UPD.:Found a solutioncd /d %ALLUSERSPROFILE%cd /d ..for /D /R %%i in (7z*.tmp) do rmdir /S /Q %%~fsi Edited May 31, 200818 yr by lsrkin
Create an account or sign in to comment