Computing.Net > Forums > Programming > Batch File to remove files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File to remove files

Reply to Message Icon

Name: nstdstl
Date: February 18, 2008 at 09:47:42 Pacific
OS: XP
CPU/Ram: P$
Product: Dell
Comment:

I have a ton of pc's that that I need to remove the C:\documents and settings\userprofiles\Start Menu\Programs\Winzip\ files from that directory.

I also have a text file that has all the pc names in (called files.txt)

Is there a way for the batch script to remove those files for all user profiles that have logged onto that pc for all the pc's listed in files.txt?



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 19, 2008 at 18:25:18 Pacific
Reply:

Untested, as my network is no more.

for /f %%a in (files.txt) do for /d %%b in ("\\%%a\C$\documents and settings\") do rd /s /q "\\%%a\C$\documents and settings\%%b\Start Menu\Programs\Winzip"


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch File to remove files

Batch file to remove print driver? www.computing.net/answers/programming/batch-file-to-remove-print-driver/16835.html

Batch file to append created date www.computing.net/answers/programming/batch-file-to-append-created-date/14993.html

How to remove end-of-line in a file www.computing.net/answers/programming/how-to-remove-endofline-in-a-file/10873.html