However when it comes to deleting directories and subdirectories using the command prompt, the regular rmdirdoes not work with a wildcard. del c:\windows\temp\?est. This was enough to make sure the temp file was no longer used by any of our processing apps. Here first it will clean all files in all sub-directories and then cleans all empty sub-directories. I found a solution which asks me kill the adb server using adb kill-server to delete all files in /home/user/. Suppose you want to delete all files of the directory dirname whose path is /home/usr/dirname then to delete all files of this directory you may use the 2 methods give below:. txt" The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with. Alternatively you can cd to that directory and then run the below command. Go to “Appearance and Personalization“, then select “File Explorer Options“. exe and select the result to load the command prompt. I cannot delete files or folders from the c: drive, even though I am logged in as Admin with full control and I am also the owner of the folder. These signify that the command will use quiet mode (/Q) and will even delete read-only files (/F). If you would like to know how to set permissions through Powershell Script, then I would recommend you to read my new blog entry here:. Deleting all files in the current Linux directory with a certain file extension can be done with the find command. rmdir /s /q C:\Somedir\DirsToDelete* But I want to delete all sub folders, say, with name DeleteMe, from all sub folders within C:\Somedir. DirectoryInfo classes from the System. Add LCase("file1. Here is the command line command to use to delete the folders and sub folders with files. Batch rename files within subfolders using command prompt in Windows. you can drag a folder to one of those batch and it will delete everything inside it and the dragged folder will not be deleted it's best used in a shutdown script file against the temporary folder %temp% where you pass this folder as parametre %1 to delete all its content and leave the folder clean and existant. Don't confuse this option with Shred Files Now, this option only removes files that are intended for shredding from the queue and no changes are made to the actual files or folders on hard drive. Use cd path, e. pdf | more. May be used to modify /T. As usual in the Command Prompt window (which we old-timers still call the "DOS window" even though we know it's not really DOS), type the command followed by /? for what I call a mini-Help file that shows the switches and parameters available with the command. So, I have. android/ and rm -rf *. Some of these folders are not empty. None can read, write, modify, move, delete, or rename the locked file or folder. pug`, as there was an issue with. It's something I don't use often, but some basic SSH and Unix command knowledge has been a very handy thing to have. If you want to rename files from one extension to another, recursively in all sub folders, then you can use the below command. Users cannot delete, move or organize these files without causing unwanted behavior in their software. This post contains a batch file, and a Powershell script that will do this. This command will delete all the files named test. Arrange HTML files of different web sites into separate projects to open a site's files at once and edit them together. The UNIX and Linux Forums It has to create sub folders. I looked on the net and came across this powershell script, that should change the attributes of all folders, including subfolders and their subfolders but wanted someone to check if it's correct. Thus, you can use Command Prompt and PowerShell to delete them in bulk. 2) Delete all folders (and files within them) from C:\Documents and Settings\All Users\Application Data\Symantec\Symantec AntiVirus Corporate Edition\7. I have excel files in a folder, I need a macro to loop through all files, rename them and save them in another folder. 1) Click on "Start" menu button and type "CMD" in the search box and press Enter. This means that you are likely to see folders listed with a size of 4k rather than the sum of all its files and sub-folders. How to Change File Ownership in Mac OS X Apr 23, 2013 - 9 Comments Though it’s somewhat rare to encounter ownership and permissions errors in Mac OS X, it can happen, particularly when an account has been moved, or a files owner has been modified by a third party application. Scripting - Delete Files and Folders Older Than X Days. How to Compress or Uncompress Files and Folders in Windows 10 Windows 10 supports compression for individual files and folders on NTFS volumes using NTFS compression. You can easily change all files & folders Read-Only file/folder attribute just clicking Start buton. Delete All Files Except One from Command Line. If you do not want to delete files from subfolders, remove /s parameter. Copying files from one folder to another on the QNAP using SSH In this example we have some FLAC music files in Multimedia and all sub-folders that we want to COPY to Public. Feb 23, 2012 • Jonathan - Removing files / folders older than X days. Step 2: You will need to type the following into the command line. If you don't want to extract all files, double-click on the compressed folder to open its contents. Command used alone (no transfers) with site profile or FTP url. g If U want to delete all files and subfolders in d:\temp catalog without deleting source (d:\temp) catalog. Delete Subfolders and Files. RD (remove directory), S (deletes all files and subfolders), Q (does not prompt for confirmation), C (Drive name), followed by folder path. Hi, I'm wanting to delete all folders (and their contents) named "Sample" from all subfolders in a specific drive path. Get-ChildItem -Path. Option 2 – From Control Panel. To delete hidden files from subfolders also you can do that by adding /S switch. For example: Type in the. Okay, not really DOS, but from a Windows Server command prompt. -I need to do this in the "d: \ test" and its subdirectories, but does not work on subfolders. Note the convenient asterisk wildcard “*”, which allows for multiple deletions in a single user operation. So, as you might expect, this command deletes the file named unused_document. If you change your mind or make a mistake, you can type Command + Z at the same time to undo the last action. so i wanted to move first and would check and delete later by confirming the right ones are picked. Press the WINDOWS key to switch to the Start screen. If you are unable to delete undeletable, locked, ghost folders or files from Windows computer use CMD or a file deleter software to delete undeletable & locked files and folders in Windows 10/8/7. Select “Create a custom Search Folder”. Use the Unix find command to search for files. Python can also go through all of the directories and folders on your computers and read those files as well. I tried using cmd to delete, which worked until I found a directory that contained 2 sub-directories with no data. -I need to do this in the "d: \ test" and its subdirectories, but does not work on subfolders. How to Change File Ownership in Mac OS X Apr 23, 2013 - 9 Comments Though it’s somewhat rare to encounter ownership and permissions errors in Mac OS X, it can happen, particularly when an account has been moved, or a files owner has been modified by a third party application. I use Windows. Thus the command del /s myfolder\* will delete all files in myfolder and all files in any subfolders of myfolder. How can Delete directory and files with subdirectorys with ftp command line? For example i have a folder with name folderB1 In that folder is many files and subfolders with files My problem is that i dontknow subfolders name for delete thats one by one Now how can Delete directory and files with subdirectorys?. Robocopy command is used on Windows to copy files and directories from one location to another. However, you are only able to copy the files from the remote machine to your own local machine; you are not able to write on the remote machine or to delete any files there. In this example we want just the FLAC files to be copied toa sub-folder called ripcaster within Public. Outputs all files in the current folder and its subfolders such that the file name before the extension contains the word "base" and whose extension starts with "doc", which includes "doc" and "docx". This article guides you how to delete file, folder or subfolder permanently and securely from your computer. Use cd path, e. Later, I would run a powershell script to delete the files in folders and sub folders. Good evening, Does anyone know an efficient way of deleting files and subfolders in a shared folder, but not deleting the root folder? my goal is to create a batch file that starts every Friday evening as scheduled task which deletes the contents of a shared folder (files and subfolder) without removing the root directory, the fact of using the command "md" will not return the same access rights. Delete all. jpg, and dance. What is console command for this?. In such cases, you can use the Command Prompt to delete files, folders, and subfolders. Option 2 – From Control Panel. None can read, write, modify, move, delete, or rename the locked file or folder. Each user has their own username and password. And if the selections are from a virtual folder FileBoss can copy files and folders from different paths and even drives at the same time. Note: As this task property contains a hyphen, you will need to surround it with quotes. IO namespace. dir /a:-s - This would list all the files that aren't system files in the current directory. - Apply to Files (and-or) Apply to folders option. Secondly, the command only deletes files, not folders. txt DEL sample. By default, it does not remove directories. Delete files & folders using Command Prompt. using FORFILES in batch to delete tmp and bak files older than a week 2 answers I need to have a windows batch file which deletes all files which are older than 7 days in a folder and its sub folders without deleting any folders. The ForFiles console tool (in Windows 7, Windows 8, Windows 8. In Windows Explorer select the root dir containing all the files and folders. The wildcard operator (*. del /s image_file00*. Open a command prompt (Press the windows icon key and R to open the run window). You could use the DEL / ERASE command to delete the files with the /S switch. This guide is an extension of a previous post, Automate Zipping Tasks using the Command-line Interface that explained the use of the command-line tools. * exit Save the text file with the. I know how to recursively delete all subfolders and all files. I need a VBScript that will check if a folder exists and if so delete it and all its contents. I am running via the built-in command prompt (cmd. rmdir /s /q C:\Somedir\DirsToDelete* But I want to delete all sub folders, say, with name DeleteMe, from all sub folders within C:\Somedir. The folder structure, means all sub folders and parent folder remain as it is. TMP This command will delete all the ‘Tmp’ files from the folder you are in, and all of the subfolders. The first command helps to delete all files of a large parent folder, but it only deletes files of that particular folder and subfolders. rootdir/ subA/ subB/ subC/ subN/ And I want to delete all files inside subA to subN, but without deleting subAsubN. Remove All - Click to remove all file(s) or folder(s) from the shredding queue. I'm using the method WebRequestMethods. The second command deletes the entire folder including the parent folder, subfolder, and all files. * Scenario A : you know the file location and type. The main program interface is pretty minimal, while all its options are hidden in the Configuration dialog. How do I move all the files from a folder (and subfolders) using the command line in Android 7. I need vb script that will go into each subdirectory and delete all files and folders within each subdirectory. how do we delete files in a hidden directory on startup What I am trying to accomplish here is in my system I have android sdk installed but it gives device unauthorized …. The command to delete these. * exit Save the text file with the. Large files can not be excluded. Can any one help? I want to delete all files and folders/files inside sub-folders using a batch file. This guide is an extension of a previous post, Automate Zipping Tasks using the Command-line Interface that explained the use of the command-line tools. I am running via the built-in command prompt (cmd. Click File Explorer icon on the Taskbar. 1, by right click on the Start Menu > Command Prompt (Admin) and type the following command. What we needed was a way to delete files that were over 1 day old. 2014 and when I try to execute the rule it works with. Select “Create a custom Search Folder”. When you get ready to run this script in live action mode, remove the -whatif parameter in the very last line. It will delete the files within the subfolders, but not the subfolders themselves. Newer versions of Windows do not have this command, but we can easily write a short batch script to do the same thing. Batch to delete all files. How can I del those (files and sub-folders) with a batch command but the 5A01, 5A025A30 will not be delete. Easy batch script to delete all files and subfolders in specific folder/drive. and the cds wont work now. Should I use the rmdir or del command?. 1+? all files in one directory) while maintaining the source. How to list all files in a directory? Execute the following T-SQL example scripts in Microsoft SQL Server Management Studio Query Editor to list all files and all directories in a directory using xp_cmdshell extended system stored procedure. Type a name for the Search Folder. -I need to do this in the "d: \ test" and its subdirectories, but does not work on subfolders. I have this batch file that will delete all files in a folder but it does not delete the folders inside the BVDATA folder del "E:\ProgramData\BusinessVision\bv_till\BVDATA\*. The first word on the line tells Windows to use the delete program. Want to delete only files with specific extension older than 15 days Welcome › Forums › General PowerShell Q&A › Want to delete only files with specific extension older than 15 days This topic contains 7 replies, has 3 voices, and was last updated by. The weird /F C:\Windows. Delete files & folders using Command Prompt First things first, using the Command Prompt incorrectly may render your system inoperable, and at the time you will not be able to recover deleted files. pug`, as there was an issue with. Copying files from one folder to another on the QNAP using SSH In this example we have some FLAC music files in Multimedia and all sub-folders that we want to COPY to Public. File Lock can lock your files and folders. Delete old database backup files automatically in SQL Server using ApexSQL Backup: ApexSQL Backup is a 3 rd party tool which creates, organizes and monitors various backup, restore and maintenance jobs. The command DEL / F / Q / S *. Please note that it requires your confirmation upon execution if the object is not empty. In my case it’s not a problem since the script will run once a day in Task Scheduler and if there’s a few empty folders left, it’s really no big deal because the next run will delete them. Delete files and folders. RD removes directories from the directory tree. *, another?. Will not actually delete any files or directories. 01) for compressing and uncompressing files in a directory and their use in batch files (for IZArc and 7-zip, see this post). Home › General › Easy command (chown) to change owner/group to all subfolders and files New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!. Do you know a CMD command where I can delete both ( Files and subfolders)? As pointed out above, this is the powershell forum. : RMDIR /S /Q \ etapp\shareX\dirX\ This code removes the test folder to. You cannot delete a directory that contains files, including hidden or system files. In Linux, the folders are nothing but files with some special properties. * indicates that you would like to delete all files in the c:\windows\temp directory. 2014 and when I try to execute the rule it works with. set: A set of one or more files enclosed in parenthesis (file1. This will delete all files in the directory except file. "\New folder", rmdir command can't delete this directory itself. 1] Delete the desired file. VBA display files of a folder. If you do not want to delete files from subfolders, remove /s parameter. You want to delete the continence so double click on the folder and open it, go to the top of the window on the edit menu click select all. zip files are uploaded to my local folder from FTP. /C command Indicates the command to execute for each file. I need to write a batch script that will delete all subfolders and files but not the parent folder. Delete Folders, Sub-Folders from SharePoint Library using PowerShell May 25, 2013 CAML , Folder , PowerShell , SharePoint , SharePoint 2010 , SharePoint 2013 , SharePoint 2016 I need to delete a Folder from SharePoint document library using PowerShell programmatically. This article guides you how to delete file, folder or subfolder permanently and securely from your computer. jpg (the /s tells you to delete all files in sub folders that contain the files). The folder it self should not be deleted. dir /b /s *. If you have multiple files having an extension like jpeg and you want to batch rename them to `jpg` as extension you can do that with a single line of code: FOR /R %f IN (*. This wikiHow teaches you how to delete a file from your PC's desktop by using a command in Command Prompt. This set of commands contains a few steps and will not work directly from a command prompt. so i wanted to move first and would check and delete later by confirming the right ones are picked. * -S -R /D /L but it only changes attributes on folders under Temp, not on subfolders under folders within Temp. However, this amount may be incorrect if you are using a deletion tracking system which retains deleted files for later recovery, or if another program performs a file operation while the MOVE command is executing. This usually contains a number of public files and directories. sql files in the C:\Backup directory and its subfolders where the file modified date is older than 10/18/2008. I don't have exclusive rights to do everything I'd like to so I've only been able to come up with [SOLVED] Delete Files and Subfolders Remotely w/cmd - IT Programming - Spiceworks. But in this case, I need to preserve subfolders. Step 5: Add new ‘Folder Details’ Worksheet: Lets add new worksheet, named it as ‘Folder Details’. If you do not want to delete files from subfolders, remove /s parameter. Okay, not really DOS, but from a Windows Server command prompt. jpg located in the current directory:. The ForFiles console tool (in Windows 7, Windows 8, Windows 8. The most obvious way to remove the read-only flag from a file is to right-click on its icon, choose “Properties”, and uncheck the “Read-only” box. Can't Delete Windows. -I need to do this in the "d: \ test" and its subdirectories, but does not work on subfolders. the picture files found in users directory and subdirectories using any extention. If you want to rename files from one extension to another, recursively in all sub folders, then you can use the below command. git mv takes at least two arguments, a source and a. Type cmd and hit enter from the keyboard. i m using the command find , i have a requirement to delete all the files from all the directories. Thanks for your help! folder delete file-format. attrib +a b:\letters\letter3. jpg located in the current directory:. Our software and services protect against more risks at more points, more completely and efficiently, enabling confidence wherever information is used or stored. In this tutorial we can check how to safely delete files and directories using Linux Command line. Home › General › Easy command (chown) to change owner/group to all subfolders and files New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!. For instance, the combination of -Filter *. Delete All Files Inside a Folder and Subfolders. The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. on temporary files. All your files are moved to the folder you want. zip extension. DEL /s will delete all files RD /s will remove all files and folders including the root folder. the command prompt) to do it. Using command line can be over 20 times faster than going through Windows Explorer itself. Powershell: Delete Files older than. By using Deltree you can issue one simple command and it will clean all directories below any point that you specify. For this example, you will learn VBA code to display files in a folder by using Drives, Subfolders, and Files properties. Date Datetime delete Delete duplicate. SOLVED: Command Line Batch To Delete Files Based on Their Age. DELTREE - Delete a folder and all subfolders/files. This Site Might Help You. To upload existing files, see Upload a folder or files to a document library. Select all files except folders and perform Cut (Ctrl + X) operation. /f parameter ignores any read-only setting. Unlike CVS, Git allows renaming and moving of files and folders. zip extension. Batch to delete all files. -type d -empty -mtime +31 -delete. Create a share folder only for the admin user (example: custom). It doesn’t offer to give popup windows or allow the running of scripts on a file create or delete trigger, but instead simply shows all the changes in its main window. Hiya, I'm trying to delete files and subfolders on remote machines using cmd. Windows Recovery Environment (Windows RE) offers a set of tools and utilities to troubleshoot Windows startup issues. But this command are only deleting subfolders and are not deleting files. I have a VBScript that will do it for a singe file and i am not sure ho to convert it so it will delete a folder and all its contents. Is there any way to get list of files, Modified Date from Windows folders/Subfolders using T-SQL? I tried few different SQL, but not able to get all the files within sub folders. Does anyone h How to - Delete folders and subfolders/files older than X days - using script - Windows Forum - Spiceworks. del * /A:H. g If U want to delete all files and subfolders in d:\temp catalog without deleting source (d:\temp) catalog. If you don't want to extract all files, double-click on the compressed folder to open its contents. What we see is true Alpha no one never see. * Is there a command line switch I can use that will also delete all subfolders in that directory? Thanks!. Right-click the “Start” button, then select “Control Panel“. Copy a directory. /f parameter ignores any read-only setting. Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. Managing files and folders is a never ending task, where I frequently see a common question on how to delete empty folders. /S will recurse down into all sub folders and /D will unhide the folders themselves if they have the System or Hidden attribute set. bat file, any suggestions?. However, not all readers are savvy with following system commands and for that reason, I made a small graphical utility to automate NTFS resetting files permissions and taking their. ini files to the subfolder config_bak, two things are different from conventional Windows copy tools: The cmdlet doesn’t return any. The wildcard operator (*. Dragging and dropping a file or folder to the Recycle Bin does the same thing. There are various levels of logging available. So two commands are needed:. Go to “Appearance and Personalization“, then select “File Explorer Options“. As easy as it sounds, it turned out renaming files and folders with git can sometimes be pretty painful. Best Answer: By using File System Object, we can get list of all Files inside a folder. The command first compares files by size, then checks their MD5 hashes, which are unique bits of information about every file. Very old versions of Windows (Windows 95 and earlier) had the DELTREE command to delete all sub-folders and files. , flatten a directory structure. I need a batch script, which has to create a directory, but if the directory already exists, it has to delete it, and create a fresh one. Normally, to check for a file exist, we do like IF EXIST sample. Delete files older than x-days - Cleanup Script Script to delete files older than x-days. ListDirectory for getting the files. In Unix-based or Unix-like systems, the command is rmdir (however, it will not delete any folders that still have subfolders or files inside - for this, you use rm -r to. If you want to see the "true" size of the folder, you will need to use the du command. Puzzle: Delete Directory Content Without Deleting the Directory Itself (on the Command Line) The Windows command line is a powerful beast. -I need to do this in the "d: \ test" and its subdirectories, but does not work on subfolders. It will commit changed files, added files, and deleted files. Many reasons can be attributed to the failure, which can lock down the files/folders and prevent their deletion. While still included in Windows 10, Xcopy has been deprecated in favor of Robocopy , a more powerful copy tool, which is now built into Windows Server and Desktop. Learn how to use commands for deleting files and folders correctly to make sure your time with Terminal is a productivity godsend. Follow the below explained instructions and learn how to force delete files using CMD on Windows 10 computer:. Delete all files/folders except I'm working on a script that will delete all files/folders except, those that have been modified in the last day and are named "abc" and testdoc. Later, I would run a powershell script to delete the files in folders and sub folders. DELTREE - Delete a folder and all subfolders/files. Locate your file. I found a solution which asks me kill the adb server using adb kill-server to delete all files in /home/user/. Cmd delete all files and folders keyword after analyzing the system lists the list of keywords related and the list of websites with related content, in addition you can see which keywords most interested customers on the this website. Unfortunately the only way to delete a folders FILES and FOLDERS using RD directly without any tricky scripting is to delete the TEMP folder itself and then recreate it. onetoc files by selecting the files in the File Explorer and deleting them. and to repeat those lines for every subfolder, but typing out those folder names for every folder in there would be tedious, especially considering new ones are created from time to time. In previous example, you had learned VBA code to display subfolders in a folder by using subfolders property. -I need to delete small files (less than 2kb or 2048 bytes). Select the files or folders and press Ctrl+Delete (Windows) or Command+Delete (Mac OS). This means that you are likely to see folders listed with a size of 4k rather than the sum of all its files and sub-folders. In this example we'll be deleting a temporary upload folder - it is VERY important that you get the directory path correct - otherwise you might end up deleting the wrong folder. Option indicates what to do with the file name. tmp files in a directory tree, within sub folders names tmp or save, then sfk delete helps with its very flexible file selection syntax. Example: Copy all the files in the directory D:\dir1\data to E:\backup\data. Robocopy command is used on Windows to copy files and directories from one location to another. The sub-folders and files in a locked folder are also protected. You could use the DEL / ERASE command to delete the files with the /S switch. In my case it’s not a problem since the script will run once a day in Task Scheduler and if there’s a few empty folders left, it’s really no big deal because the next run will delete them. Letting a dedicated program find and delete empty folders is the best choice for users of all skill levels. Use cd path, e. Batch copy with pauses. To delete objects, use the Remove-Item cmdlet. To override this behaviour you can use the Include ignored files checkbox. I would like to delete specific files within subfolders in my directory. I need a batch script, which has to create a directory, but if the directory already exists, it has to delete it, and create a fresh one. Delete Empty Folders From the Command Line or Scripts. The GNU find command searches files within a directory and its subdirectories according to several criteria such as name, size and time of last read/write. If you want to delete, for example, only. Delete All Files Except One from Command Line. First, bring up a QShell session using the "STRQSH" command. File, System. Note that the scripts works recursively, i. Good evening, Does anyone know an efficient way of deleting files and subfolders in a shared folder, but not deleting the root folder? my goal is to create a batch file that starts every Friday evening as scheduled task which deletes the contents of a shared folder (files and subfolder) without removing the root directory, the fact of using the command "md" will not return the same access rights. This was enough to make sure the temp file was no longer used by any of our processing apps. CMD - List all files in a folder + subfolders? Hi, what command can I use in the Windows CMD to create a text file list of all the files in a particular folder that has many sub-folders as well? I have no knowledge of DOS so please explain it as if I am an idiot. Arrange HTML files of different web sites into separate projects to open a site's files at once and edit them together. Replacing Strings in Multiple Files in Folder and SubFolders. Delete files and folders on Mac. After copying a batch of files to your Windows PC from a CD or DVD, you may discover that all the copied files carry the read-only flag. Delete all files from current directory and sub-directories but leaving the folders structure. You should now see a finder pane containing only those files and folders that you want to unlock. By using Deltree you can issue one simple command and it will clean all directories below any point that you specify. Free open source command line tool for Windows, Mac OS X, Linux and Raspberry Pi. com this is the only one i was able to use so far that worked exactly for what the asker was asking, all the other ones just delete all the files. If there was a separate subfolder for each database, then we’d change the subfolder parameter to 1 to delete files from each of those database subfolders. Directory, System. Renaming files in subfolders (or subdirectories) is a more complex task that requires additional syntax. DELTREE - Older versions of Windows had the DELTREE command to delete all files and sub folders. del /s image_file00*. net Tap on the Windows-key, type cmd. Re: How To Delete Folders/Subfolders With Files Using Batch File 2015-05-18 Write a script in your favorite language that will take a file with list of folders and generate a script file with rm command for each of them. Note that the scripts works recursively, i. Managing files and folders is a never ending task, where I frequently see a common question on how to delete empty folders. This command is useful if you want to delete all files within a. cd o:\backups\test\ to do so. Go to the parent directory containing temporary files and provide appropriate folder security permissions. dir /w - Lists just the files and directories, going horizontal, and taking as little as space needed. Command used alone (no transfers) with site profile or FTP url. A file-loop is useful when you want to operate on a collection of files and/or folders, one at a time. The command line is not only powerful, it can also be dangerous. Searched around the net couldn't find quite how to search multiple subfolders to get this done. tmp," such as "pest. There is no way to "Undo" the delete, the file is not sent to the Windows Recycle Bin(Same for the macro's that use the filesystemobject). I believe the syntax might be DEL /S C:/PATH/TO/BASEDIR/*.