Quote: Originally Posted by mnr367
i tried creating a .bat file using the same code.
My user name is ' vasan ' so i write it like
-- del /F /Q "C:\Users\vasan\AppData\Local\IsolatedStorage\Delete Contents\*.*" --
But its not deleting the contents of the folder.
Is the code correct? do it need to be tweaked to make it actually delete the contents..
If you want to delete the contents of the IsolatedStorage folder, then remove the \Delete Contents\ piece from the code, so it reads "C:\Users\vasan\AppData\Local\IsolatedStorage\*.*"
Also, if you wanted this task to run silently (for a login script), you'll have to create a VBS file with the following code. Copy and paste this into a text file and change the path to point to your batch file, and save the text file as .vbs:
Then, in your Group Policy (if you're working in a Windows domain), add the new VBS script to your Login Scripts.
If you're still having problems with it deleting it could be due to file permissions. If you push this via GPO, it should run under the System/Network account and should delete.