Jump to content

How many different ways are there to delete a file? Can you show me a few more than just FileDelete?

Recommended Posts

I'm trying to delete "C:\OneDrive\PCRemoteControl\software.txt" a few seconds after it's created.

I have a program on one end create the file, and a program on another computer wait for that file to show up then read it's contents and delete it. The problem is, that doesn't work right away. I have to FileDelete in a loop until it can't find the text file anymore.

Yet, I can delete via right click>delete it the moment I see it show up in explorer.
Obviously there's a way to delete it right away, so I'm wanting to try a few other methods.
So, how many different ways would you delete "C:\OneDrive\PCRemoteControl\software.txt"?

Thanks all!

Edited by Draygoes


"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.


Link to post
Share on other sites
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...