answersLogoWhite

0


Best Answer

You can run this in a .bat file

del "C:\Text Files\*.txt"

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the command that will delete all files with TXT extension in your current directory but will pause at each file and ask if you want to delete the file or leave it alone?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which MS-DOS command is used to delete a directory and its sub directories in one pass?

To delete directory and sub directory in single command, use "deltree" command..


What the asterix is for In ms dos?

"Asterix is not a command.. Its a comic character.." Actually asterix is also a so called wildcard character in MS-DOS. It replaces a whole series of characters related to file name, extension or both. For example, if you want to delete all files named "list" from a current directory (no matter what type those files are) use the following command: del list.* In case you want to delete all files with .txt extension from the current directory, use: del *.txt Or if you want to delete all files in the directory no matter what type they are or what they were called, use: del *


How delete commandcom from dos?

In DOS, you can delete files only by delete command. Use delete command as follows:C:\> delete For example: delete rajesh and then press enter..To remove a directory (Folder) use following command:C:\> RD For example: rd documents and then press enter..Note: Please make sure that directory is empty. You can only delete empty directory with rd command..


Which command is used to delete the directory that is empty?

erase


Which two commands can you use to delete directories?

AFAIK there's only one command to delete a directory. "rmdir" Removes the directory. If you only want to delete the content of the directory you can use "del <dir name>"


What is the command to delete all files in the A data folder that begin with the letter A and have the txt file extension?

Depends on the operating system...In Windows (with a command prompt open and the current directory is this data folder): del a*.txtThe del command is used to delete files and takes an argument containing the name of the file. Wildcards, such as * (denotes "any number of characters"), are used to take action on any items in the folder that meet the requirements. You can think of a*.txt as meaning "starts with an a followed by any number of characters, and ending with a period and the extension 'txt'."


Which Linux command will delete a directory as well as all its files and sub directories?

rm -rv /path/to/directory


How do you delete 0 byte files using DOS?

The command for deleting a file in DOS is DEL. If the file you are trying to delete is in the current directory, type DEL followed by the full filename. E.g. del file001.txt If there are multiple files, the wildcard * can be used. del file*.txt will delete all the text files that start with 'file' del file*.* will delete all the files that start with file. del *.txt will delete all the text files. del *.* will delete all the files in the current directory. It is possible to delete files in another directory by typing the full path and filename del c:\folder01\*.* will delete all the files in the directory c:\folder01\ DEL will not affect hidden files, but careless use of this command could damage your operating system so use with care.


What is the command is used to remove directory in Linux?

Assuming the directory is in your Home directory use: rmdir directory-name This will fail if there are files within the directory. In this case, use rm -r directory-name.


What is the command tool that can create delete view and modify objects in active directory?

Dsadd


Can command rmdir can be used to delete a directory that is not empty?

the commandrmdir will not remove a directory if it is not empty in UNIX. The correct way to remove a directory and all its contents recursively is with the rmcommand.


What command allows to delete a directory in Windows 7?

don't know sorry i was just bored :)