cd %ALLUSERSPROFILE% cd.. for /D /R %%i in (7z*.tmp) do rmdir /S /Q %%i
here's my batch file for deleting all temp directories in "Documents and Settings" folder and all subfolders
The thing is that the line
for /D /R %%i in (7z*.tmp) do rmdir /S /Q %%i
doesn't execute from "C:\Documents and Settings" folder
It executes from whete my batch file is!!!
So the whole script is useless.
Any suggestions??
UPD.:
Found a solution
cd /d %ALLUSERSPROFILE% cd /d .. for /D /R %%i in (7z*.tmp) do rmdir /S /Q %%~fsi
This post has been edited by lsrkin: 30 May 2008 - 10:25 PM



Help
Back to top








