Jump to content
Ghost Recon.net Forums

How to delete a file in DOS


Recommended Posts

In DOS?!

I would probably be doing it wrong but this is what I would do...navigate to the directory and type in del this is a very-large move.avi

This is the way it was done back in the dos days, now days I would just navigate through the C:/ drive to the file and right click and delete.

Link to post
Share on other sites
...navigate to the directory and type in del this is a very-large move.avi

That's what I need - the command line for changing directory and deleting with names longer than 8 characters and with spaces. Remember that the filename will be different because of it's length.

Link to post
Share on other sites

yehhhhhhhhhh!

At last the file is gone.

The correct syntax was cd homemo~1

I.E. ignore the space in home movies, use the first 6 characters only, and append "~1"

Easy when you know how, tx for those links.

Link to post
Share on other sites

That's funny...I was just about to post this very same question... :huh:

Ahh well..I have my answer...cheers!

@Rocky - you weren't having probs with a (ignoring legalities here) divX avi file downloaded by P2P (in my case Kazaa), were you? Just I got this weird movie file that will not delete thru windows...was just wondering....

:ph34r:

Link to post
Share on other sites

There's another shortcut as well.

Let's say you have a folder with the following files in it:

  • movie.avi
  • moving day.doc
  • moose.gif

To delete the AVI, you could type >del movie*

To delete the AVI and DOC, type >del mov*

To delete all three, type >del m*

Wildcards. Gotta love `em.

Link to post
Share on other sites
There's another shortcut as well.

Let's say you have a folder with the following files in it:

  • movie.avi
  • moving day.doc
  • moose.gif

To delete the AVI, you could type >del movie*

To delete the AVI and DOC, type >del mov*

To delete all three, type >del m*

Wildcards. Gotta love `em.

Well thats is actually what I did.

The file name was huge, so I didn't want to faff around figuring out how to type it in, and I get really scared typing *.* when deleting, so I just did del *.avi.

It worked, I even checked that windows clocked the delete by checking the drive space, and everything was fine. :thumbsup:

Link to post
Share on other sites
@Rocky - you weren't having probs with a (ignoring legalities here) divX avi file downloaded by P2P (in my case Kazaa), were you? Just I got this weird movie file that will not delete thru windows...was just wondering....

No no, it was not a divx movie download through Kazaa!

I can say with a certain degree of certainty that my solution as described above, will also solve your problem. :thumbsup:

Link to post
Share on other sites
I can say with a certain degree of certainty that my solution as described above, will also solve your problem.

Sorted. Cheers! :rocky:

*I have no knowledge of any video file that was on this hard drive...no recollection of those evnts whatsover. Sir!*

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...