lsrkin Posted May 31, 2008 Posted May 31, 2008 (edited) 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, 2008 by lsrkin
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now