Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-07-2009
Member
 
Join Date: Jun 2009
Posts: 3
How to delete a file through command prompt ?

I try to delete file from desktop but it still it display on my computer. Error deleting file or folder Can not delete file: the file specified verify that the path and file name specified are correct.

Now i want to try to delete from command prompt. Is anyone know how delete a file through command prompt ?

Thanks
Reply With Quote
  #2  
Old 24-07-2009
Member
 
Join Date: Nov 2008
Posts: 47
Re: How to delete a file through command prompt ?

Click "Start - Run and type" cmd "to open a command prompt window.

Navigate to the directory where the "undeletable" file, with 'cd' command. Ie cd c: \ Documents and Settings \ My Documents \ undeletablefilename.

Use the 'del' command to delete the file. Ie del 'undeletablefilename'.

Restart your computer.
Reply With Quote
  #3  
Old 24-07-2009
Member
 
Join Date: Dec 2008
Posts: 98
Re: How to delete a file through command prompt ?

Open a Command Prompt window
- Type CD \
(Visit the root of the drive)
- If the file containing the page that is on C:, go to the drive the file: eg
- Type E:
- Type CD <<folder name>>
(to go to the file)
- Type DIR / X
(for a list of files with the center said the name 'short name')
This name is usually 1 or ~ ~ 2 at the end

This name should be used with the suppression file:
DEL <<file name>>
Reply With Quote
  #4  
Old 24-07-2009
Member
 
Join Date: Jan 2009
Posts: 29
Re: How to delete a file through command prompt ?

A few other very useful commands that you might have to end with are listed below:

Chkdsk - Checks a disk or a floppy disk for file system integrity.
Copy - Copies files from one place to another. The aim of the current directory by default. If there are multiple source files, the destination directory, otherwise you get an error message.
Rk - Compares two files or groups of files and displays the differences between them
Fdisk - manipulate disk partition tables. After starting from the command line, it displays a menu from which various partitioning operations.
Format - Delete all files on the hard drive and format it for MS-DOS. Use primarily for formatting floppy disks or other removable media.
Scandisk - Diagnostic Disk Utility, which is a replacement for the CHKDSK utility.
SFC - System File Checker - Scans all protected system files and replaces incorrect versions with the correct file versions.
Reply With Quote
  #5  
Old 24-07-2009
Member
 
Join Date: Dec 2008
Posts: 106
Re: How to delete a file through command prompt ?

I had the same problem, a *. avi file, I was not able to remove file. I followed the advice given above answers, open the DOS prompt, type "del filename".
Reply With Quote
  #6  
Old 16-09-2011
Member
 
Join Date: Sep 2011
Posts: 2
Re: How to delete a file through command prompt ?

I locked my file with Folder Lock Software.
Now I can't delete (even can't open the file using the software) the file. Is there any solution to delete the file using command prompt or any other procedure. Plz a prompt reply is required
Reply With Quote
  #7  
Old 16-09-2011
Member
 
Join Date: Dec 2007
Posts: 2,273
Re: How to delete a file through command prompt ?

Quote:
Originally Posted by mrupom View Post
I locked my file with Folder Lock Software.
Now I can't delete (even can't open the file using the software) the file. Is there any solution to delete the file using command prompt or any other procedure. Plz a prompt reply is required
Download a tool from Krojam Soft by searching it from google that will help you to delete that particular locked file, it also deletes files/folders with long path using File / Folder Clean-Up Tool (Path too long). Key features:
  • Delete files and folder with long paths
  • Ability to delete files from mapped network folders
  • Copy files avoiding "The filename you specified is invalid or too long. Specify a different filename" error
Reply With Quote
  #8  
Old 16-09-2011
Member
 
Join Date: Sep 2011
Posts: 2
Folder Lock Software not Running & Can't Delete the Locked Files

I am using the Folder Lock Version 5.2.6 & I know the lock password. My folder lock software is not running (Error Message: Windows can't access the specified device, path or file. You may not have the appropriate permission to access the item). I can't delete the locked folder unless the Folder Lock Software runs. Please give any solution asap.
Reply With Quote
  #9  
Old 16-09-2011
Member
 
Join Date: Dec 2007
Posts: 1,728
Re: Folder Lock Software not Running & Can't Delete the Locked Files

Quote:
Originally Posted by mrupom View Post
I am using the Folder Lock Version 5.2.6 & I know the lock password. My folder lock software is not running (Error Message: Windows can't access the specified device, path or file. You may not have the appropriate permission to access the item). I can't delete the locked folder unless the Folder Lock Software runs. Please give any solution asap.
Alright, so you mean to say that you know the password but its just the Folder Lock software that is not working properly. So, havent you tried to uninstall and reinstall the Folder Lock software and checked after that if you can put the password and unlock the file? If you havent so, they try it and let us know the results.
Reply With Quote
  #10  
Old 14-10-2011
Member
 
Join Date: Oct 2011
Posts: 1
Re: How to delete a file through command prompt ?

I need to delete a file on a shared folder on a network. The tricky part is that it has restricted permissions preventing this. Is there a way to delete it with out a program using cmd prompt. If so, how would I find the path to the networked file?
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to delete a file through command prompt ?"
Thread Thread Starter Forum Replies Last Post
How to Delete Video Drivers from Command Prompt Aamin Windows Software 3 06-04-2009 01:36 PM
about the command prompt Gorganzola Windows Software 2 17-10-2008 06:24 PM
Can't Rename a File Using WinXP Command Prompt!!! Kaalan Windows XP Support 2 02-05-2008 05:14 PM
How to delete folder from the command prompt? Jack Vista Help 7 07-03-2008 11:13 AM
Command prompt "COPY" command not working in brand new Windows Vis CMD COPY command not working in Vista Vista Help 7 06-02-2008 02:50 AM


All times are GMT +5.5. The time now is 04:44 AM.