How to Change Directories in Command Prompt

Deleting a file through command prompt in Windows or other operating systems is straightforward. For Window’s users, simply right-click the file and browse to the bottom and click “Delete” option or select the same before inputting the delete-key. Occasionally, you’ll stumble upon files that can be sloughed off by just clicking your mouse. If a file cannot be deleted through the Windows option, you can resort to the Command Prompt devoid of downloading or installing third party applications. If Command Prompt does not ring a bell to you, relax, it is a clear-cut, step-less process.

#Step 1: Get Started

Click the Start menu, click all programs to select accessories and find Command Prompt. Equally, you can click the run dialog by holding WinKey+R and key in “cmd” and then “del”, but don’t include the quotation marks. However, it is recommended you use Administrator Command Prompt. Starting again from scratch as administrator, type CMD in the Start menu bar and then contemporaneously press Ctrl + Shift + Enter keys. WARNING: Once a file is deleted via this route, it is not archived in the Recycle Bin but expunged completely, which means it’s irretrievable. Due to the permanent loss, if you need the file, save it elsewhere before using the command line to delete.

Step# 2: Administrator Users

If you are not the current admin, you can’t access the elevated Command Prompt line; you have to delete the file by using standard Command Prompt. To delete any file as admin, identify its exact location. The pathfinder to your file is repressing the shift-key prior to right-clicking it and then press on the option “Copy as path” to replicate the path.

Step #3: Deleting

Next, type “Del pathtothefile”, e.g. Del “C: \Box \ HFLx.mp4 “. Users of Windows 7/8/8.1 cannot paste by pressing Ctrl + V. Right click first to paste the option. Windows 10 allows you to paste the path by suppressing Ctrl + V hot-key. In case you get “Could Not Find” error, countercheck the file’s extension and the path as highlighted. Ensure the file’s extension, path and name are typed correctly to the execute delete command.

Step #4: Delete As “Guest”

If you’re not the administrator, you can still delete by standard Command Prompt. Once you’re in the Command Prompt program, fill in the file’s name and corresponding extension. If you’re groping aimlessly for a file and can’t trace it, use the normal search box to home in and right-click to find properties, something of this sort should pop up “C:\iTunesfile.ext'. However, if you’re on the file’s directory, it’s much easier as you’ll only need to copy the properties directly. For instance, if you want to delete “iTunesfile.ext, you would input “del iTunes.ext”. If the file is stored on the desktop and you’ve opened one directory, type C:\Users\username iTunes.ext”. Models like DEL support quirky characters like the Star (*) and Question Mark (?). In this case, if you were to delete every file with the .MP3 extension, key in del C:\Users\username\Desktop\*.mp3”.