Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

User Tag List

Create a batch file to delete folders and files

This is a discussion on Create a batch file to delete folders and files within the Windows XP Support forums, part of the Tech Support Forum category. I need to create a batch file to delete folders and the files that are in them. I have an


Closed Thread
 
Thread Tools Search this Thread
Old 11-23-2009, 09:49 AM   #1
Guest
 
Join Date: Nov 2009
Posts: 1
OS:



I need to create a batch file to delete folders and the files that are in them. I have an application that is blowing up users profiles, not allowing them to log off until they reduce the profile size. Until I get a resolution from the application support team I need a batch file that I can send them that will delete two folders. Here is what I have to far and it is not working:

@echo off
deltree /y C:\Documents and Settings\SidesRJ\Documentum\ucf
deltree /y C:\Documents and Settings\SidesRJ\Documentum\cta
exit


Any help would be appreciated
rsides is offline  
Sponsored Links
Advertisement
 
Old 11-23-2009, 02:23 PM   #2
Guest
 
Join Date: Aug 2008
Posts: 2,439
OS:



deltree is a DOS/Windows 9x command.
In Windows NT 4 and higher (2000, XP, Vista, 7), you use rd /s (subdirectories)
If you want to do it without prompt you'd use the /q (quiet) flag
if you want to run it on different users' computers (with different usernames) use environment variables
to know what they are, open a command prompt window and type set
to access specific variables, use the % sign
for example in my computer, if you type %temp% in the address bar, it'll take you to that folder.
blah789 is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2
Powered by vBadvanced CMPS v3.2.3


All times are GMT -7. The time now is 04:27 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts