Jump to content
UBot Underground

Delete file command sends the file to the Recycle Bin


Recommended Posts

Does this actually delete the whole Recycle Bin index?

 

That command clears out the $Recycle.bin folder from the C:\ partition. It permanently deletes all files and folders which are in the Recycle Bin (from all user accounts in the system) and cannot be recovered.

Link to post
Share on other sites

On this note, when I have a delete folder or delete file command it prompts me to ask if I want to really delete.  Is there a way to make it so this prompt doesn't happen and it just deletes files?

Link to post
Share on other sites

For the del command you can mix and match any of these attributes:

 

/p Prompts you for confirmation before deleting the specified file.

/f Forces deletion of read-only files.

/s Deletes specified files from the current directory and all subdirectories. Displays the names of the files as they are being deleted.

/q Specifies quiet mode. You are not prompted for delete confirmation.

/a Deletes files based on specified attributes.

Link to post
Share on other sites
  • 4 weeks later...

Follow these instructions for a completely silent solution:

 

  1. Create a file del_file.vbs using your notepad
  2. Put these contents inside:
    set fso = CreateObject("Scripting.FileSystemObject")
    
    If fso.FileExists(WScript.Arguments(0)) Then
          fso.DeleteFile(WScript.Arguments(0))
    End If
  3. Create a ubot command using the following code:
    define delete_vbs(#filepath) {
        shell("wscript.exe \"{$special folder("Application")}\\del_file.vbs\" \"{#filepath}\"")
    }
  4. Put the .vbs file in the same folder as your ubot script
  5. To delete a file, just call the command:
    delete_vbs("c:\\myfile.txt")
  6. The file gets deleted silently. If it does not exist then nothing happens.

Enjoy

Link to post
Share on other sites
  • 2 years later...

Follow these instructions for a completely silent solution:

 

  1. Create a file del_file.vbs using your notepad
  2. Put these contents inside:

    set fso = CreateObject("Scripting.FileSystemObject")
    
    If fso.FileExists(WScript.Arguments(0)) Then
          fso.DeleteFile(WScript.Arguments(0))
    End If
  3. Create a ubot command using the following code:

    define delete_vbs(#filepath) {
        shell("wscript.exe \"{$special folder("Application")}\\del_file.vbs\" \"{#filepath}\"")
    }
  4. Put the .vbs file in the same folder as your ubot script
  5. To delete a file, just call the command:

    delete_vbs("c:\\myfile.txt")
  6. The file gets deleted silently. If it does not exist then nothing happens.

Enjoy

 

Doesn't work....

 

Anyone able to give a REAL solution for this???

 

My gosh i thought uBot is for AUTOMATION but with the delete folder command in uBot STILL requires you to agree with file deletion popup.

Sighhhh

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.

Loading...
×
×
  • Create New...