lsrkin Posted May 31, 2008 Share 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 Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now