SCRIPT: Simple Delete Script

I needed to delete one file in every home directory of the users. For this i used an easy script using ‘for’.

@echo off
REM DELETE Powerfuse Printer Settings

E:
cd \users\Home
for /F "usebackq delims==" %%i in (`dir *.* /B`) DO del /F /Q e:\users\home\%%i\PwrMenu\UserPref\PrinterPreferences.dat

Advertisements

Posted on 16/04/2009, in Scripting and tagged . Bookmark the permalink. Leave a comment.

Comments are closed.

%d bloggers like this: